diff options
Diffstat (limited to 'bash/bashrc.d/ud.bash')
-rw-r--r-- | bash/bashrc.d/ud.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/ud.bash b/bash/bashrc.d/ud.bash index b05539ab..75768cc3 100644 --- a/bash/bashrc.d/ud.bash +++ b/bash/bashrc.d/ud.bash @@ -13,7 +13,7 @@ ud() { ;; -*) shift - opts=("${opts[@]}" "$arg") + opts[${#opts[@]}]=$arg ;; *) break @@ -58,7 +58,7 @@ _ud() { # Iterate through directories, null-separated, add them to completions local dirname while IFS= read -d '' -r dirname ; do - COMPREPLY=("${COMPREPLY[@]}" "$dirname") + COMPREPLY[${#COMPREPLY[@]}]=$dirname done < <( # Set options to glob correctly |