aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/path.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-17 15:33:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-17 15:33:37 +1300
commit57d39d92fad5418e96dd4d69d6e86a578c3764b4 (patch)
tree66773bad1c693a02f393d4fe67f48cc20b69093e /bash/bash_completion.d/path.bash
parentFollow ShellCheck's recommendation of -z over !-n (diff)
downloaddotfiles-57d39d92fad5418e96dd4d69d6e86a578c3764b4.tar.gz
dotfiles-57d39d92fad5418e96dd4d69d6e86a578c3764b4.zip
Remove now-unneeded shellcheck disable rules
These two comments disabling SC2154 were added in commit 5fa3ef7, because ShellCheck 0.50 did not recognise the NAME pointed to by `read -a NAME` commands as an array assignment. This bug has been corrected in ShellCheck 0.60, meaning that these comments are no longer required.
Diffstat (limited to 'bash/bash_completion.d/path.bash')
-rw-r--r--bash/bash_completion.d/path.bash1
1 files changed, 0 insertions, 1 deletions
diff --git a/bash/bash_completion.d/path.bash b/bash/bash_completion.d/path.bash
index c3bb7b80..9224506a 100644
--- a/bash/bash_completion.d/path.bash
+++ b/bash/bash_completion.d/path.bash
@@ -66,7 +66,6 @@ _path() {
< <(printf '%s\0' "$PATH")
# Print shell-quoted matching parts, null-terminated
- # shellcheck disable=SC2154
for path in "${paths[@]}" ; do
case $path in
("$2"*) printf '%q\0' "$path" ;;