diff options
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r-- | bash/bashrc.d/cd.bash | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash index 256acadd..3ee3329f 100644 --- a/bash/bashrc.d/cd.bash +++ b/bash/bashrc.d/cd.bash @@ -2,8 +2,7 @@ # emulating a Zsh function that I often find useful; preserves options too __cd() { local opts= - while getopts lPe opt - do + while getopts lPe opt; do opts="$opts -$opt" done shift $(($OPTIND-1)) |