aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/path.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 20:22:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 20:36:45 +1200
commit443643200d728b4947349b13e2345ec9ae82d203 (patch)
tree5a8d13f6a39505608ac42d182c864703ca6bc649 /bash/bash_completion.d/path.bash
parentIgnore SC1090 (allow unfollowable dotting) (diff)
downloaddotfiles-443643200d728b4947349b13e2345ec9ae82d203.tar.gz
dotfiles-443643200d728b4947349b13e2345ec9ae82d203.zip
Add -r to read to placate shellcheck
Diffstat (limited to 'bash/bash_completion.d/path.bash')
-rw-r--r--bash/bash_completion.d/path.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/path.bash b/bash/bash_completion.d/path.bash
index b8bdc6aa..60b36844 100644
--- a/bash/bash_completion.d/path.bash
+++ b/bash/bash_completion.d/path.bash
@@ -41,7 +41,7 @@ _path() {
# Complete with directories from PATH
remove)
local -a promptarr
- IFS=: read -d '' -a promptarr < <(printf '%s\0' "$PATH")
+ IFS=: read -rd '' -a promptarr < <(printf '%s\0' "$PATH")
local part
for part in "${promptarr[@]}" ; do
[[ $part == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue