diff options
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r-- | bash/bashrc.d/cd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash index f16aad41..6d7e2573 100644 --- a/bash/bashrc.d/cd.bash +++ b/bash/bashrc.d/cd.bash @@ -4,7 +4,7 @@ cd() { local opt OPTIND=0 local -a opts while getopts elP opt; do - opts[${#opts[@]}]=-$opt + opts=("${opts[@]}" -"$opt") done shift $((OPTIND-1)) if (($# == 2)); then |