diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 20:22:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 20:36:45 +1200 |
commit | 443643200d728b4947349b13e2345ec9ae82d203 (patch) | |
tree | 5a8d13f6a39505608ac42d182c864703ca6bc649 /bash/bash_completion.d/bd.bash | |
parent | Ignore SC1090 (allow unfollowable dotting) (diff) | |
download | dotfiles-443643200d728b4947349b13e2345ec9ae82d203.tar.gz dotfiles-443643200d728b4947349b13e2345ec9ae82d203.zip |
Add -r to read to placate shellcheck
Diffstat (limited to 'bash/bash_completion.d/bd.bash')
-rw-r--r-- | bash/bash_completion.d/bd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/bd.bash b/bash/bash_completion.d/bd.bash index 7f4ae107..4b3d4a94 100644 --- a/bash/bash_completion.d/bd.bash +++ b/bash/bash_completion.d/bd.bash @@ -6,7 +6,7 @@ _bd() { # Build a list of dirnames in $PWD local -a dirnames - IFS=/ read -d '' -a dirnames < <(printf '%s\0' "${PWD#/}") + IFS=/ read -rd '' -a dirnames < <(printf '%s\0' "${PWD#/}") # Remove the last element in the array (the current directory) ((${#dirnames[@]})) || return 1 |