diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-14 17:48:52 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-14 17:48:52 +1300 |
commit | 06f5ca98018fd4ba357b0e70b1e710b682b6cdb5 (patch) | |
tree | 76bc12131c82c87852e4183969d6969d9eeabf7f /bash/bashrc.d/pd.bash | |
parent | Fix some English (diff) | |
download | dotfiles-06f5ca98018fd4ba357b0e70b1e710b682b6cdb5.tar.gz dotfiles-06f5ca98018fd4ba357b0e70b1e710b682b6cdb5.zip |
Switch to a faster method of array appending
Does away with the nasty hack around man page discovery, and still
compatible with Bash 2.05a
Diffstat (limited to 'bash/bashrc.d/pd.bash')
-rw-r--r-- | bash/bashrc.d/pd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/pd.bash b/bash/bashrc.d/pd.bash index 2a157b2a..1dbf7d39 100644 --- a/bash/bashrc.d/pd.bash +++ b/bash/bashrc.d/pd.bash @@ -16,7 +16,7 @@ pd() { ;; -*) shift - opts=("${opts[@]}" "$arg") + opts[${#opts[@]}]=$arg ;; *) break |