Skip to content

Commit

Permalink
Suppress false-positive shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
krader1961 committed Jan 26, 2020
1 parent 5000e7f commit 43d1853
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/cmd/ksh93/functions/cd
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/cmd/ksh93/functions/popd
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/cmd/ksh93/functions/pushd
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 43d1853

Please sign in to comment.