diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-01 00:59:38 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-01 00:59:38 +1200 |
commit | 9b51be856c90584d9b59df4bd19ded55b2d9fc1d (patch) | |
tree | 3e30565d39c47fc0b430831a8b16471f1f7cda8c /bash/bashrc.d/grep.bash | |
parent | More sensible use of local (diff) | |
download | dotfiles-9b51be856c90584d9b59df4bd19ded55b2d9fc1d.tar.gz dotfiles-9b51be856c90584d9b59df4bd19ded55b2d9fc1d.zip |
Turns out older Bash is muddled by var=()
Initialisation with an array literal doesn't work in 2.05a
Diffstat (limited to 'bash/bashrc.d/grep.bash')
-rw-r--r-- | bash/bashrc.d/grep.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/grep.bash b/bash/bashrc.d/grep.bash index dc26e80e..42211968 100644 --- a/bash/bashrc.d/grep.bash +++ b/bash/bashrc.d/grep.bash @@ -5,7 +5,7 @@ grepopts() { local grephelp=$(grep --help 2>/dev/null) # Start collecting available options - local grepopts=() + local -a grepopts # Add option to ignore binary files grepopts[${#grepopts[@]}]='-I' |