aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-20 12:56:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-20 12:56:53 +1200
commit77062411d5b0cf9db05dea16e825e991e6184361 (patch)
tree772295554dbc11a02cc4fe1567dee8d21b85ef26 /bash/bashrc.d/cd.bash
parentFix dotfiles dir existence test (diff)
downloaddotfiles-77062411d5b0cf9db05dea16e825e991e6184361.tar.gz
dotfiles-77062411d5b0cf9db05dea16e825e991e6184361.zip
Remove unnecessary quoting in simple assignments
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r--bash/bashrc.d/cd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash
index 282e1649..320d614b 100644
--- a/bash/bashrc.d/cd.bash
+++ b/bash/bashrc.d/cd.bash
@@ -3,7 +3,7 @@
__cd() {
local -a opts
while getopts elP opt; do
- opts[${#opts[@]}]="-$opt"
+ opts[${#opts[@]}]=-$opt
done
shift $(($OPTIND-1))
if (($# == 2)); then