diff --git a/CHANGELOG.md b/CHANGELOG.md index 12bdf76683ad..1d5417a59573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,10 @@ - A .sh.install_prefix var has been introduced to reflect the `meson -prefix=` value. This will be used to establish the location of supporting files such as man pages and autoloaded functions. +- Cd related functions (e.g., cd, pushd, popd, nextd, prevd, mcd, dirs) are + automatically enabled. The code is based on the functions that used to be + found in src/cmd/ksh93/fun. In practice they were never used because most + distros never installed those files, and if installed no one knew about them. ## Other significant changes diff --git a/src/cmd/ksh93/functions/cd b/src/cmd/ksh93/functions/cd index 71fc2a22145c..a10a61d6f595 100644 --- a/src/cmd/ksh93/functions/cd +++ b/src/cmd/ksh93/functions/cd @@ -4,6 +4,7 @@ # `cd -2` to cd to the second most recently visited directory. # # shellcheck disable=SC2102 # .sh.var refs are legal as an array index +# shellcheck disable=SC2154 # .sh._push_stack[@] is referenced but not assigned # shellcheck disable=SC2211 # .sh.var assignments are not "glob used as a command name" function cd { diff --git a/src/cmd/ksh93/functions/popd b/src/cmd/ksh93/functions/popd index 3ccfb801a7f1..dea9c60840e8 100755 --- a/src/cmd/ksh93/functions/popd +++ b/src/cmd/ksh93/functions/popd @@ -1,5 +1,6 @@ #!/usr/bin/env ksh # Pops the top directory +# shellcheck disable=SC2154 # .sh._push_stack[@] is referenced but not assigned # shellcheck disable=SC2211 # .sh.var assignments are not "glob used as a command name" function popd { diff --git a/src/cmd/ksh93/functions/pushd b/src/cmd/ksh93/functions/pushd index b2f81b58d091..5fecc997afdc 100755 --- a/src/cmd/ksh93/functions/pushd +++ b/src/cmd/ksh93/functions/pushd @@ -1,6 +1,7 @@ #!/usr/bin/env ksh # Change directory and put directory on front of stack # shellcheck disable=SC2102 # .sh.var refs are legal as an array index +# shellcheck disable=SC2154 # .sh._push_stack[@] is referenced but not assigned # shellcheck disable=SC2211 # .sh.var assignments are not "glob used as a command name" function pushd {