Add $OLDPWD example for cd (#6194)

* add example for cd

* Fix format_conversions tests
This commit is contained in:
Reilly Wood
2022-07-30 20:29:52 -07:00
committed by GitHub
parent 6a4eabf5c7
commit dd2a0e35f4
2 changed files with 7 additions and 2 deletions

View File

@ -188,6 +188,11 @@ impl Command for Cd {
example: r#"cd d/s/9"#,
result: None,
},
Example {
description: "Change to the previous working directory ($OLDPWD)",
example: r#"cd -"#,
result: None,
},
]
}
}