aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ftp.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/ftp.bash')
-rw-r--r--bash/bashrc.d/ftp.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/ftp.bash b/bash/bashrc.d/ftp.bash
index 218afc2c..4b4b63eb 100644
--- a/bash/bashrc.d/ftp.bash
+++ b/bash/bashrc.d/ftp.bash
@@ -16,7 +16,7 @@ _ftp() {
local token
for token in "${tokens[@]}" ; do
if ((nxm)) ; then
- machines=("${machines[@]}" "$token")
+ machines[${#machines[@]}]=$token
nxm=0
elif [[ $token == machine ]] ; then
nxm=1
@@ -27,7 +27,7 @@ _ftp() {
local machine
for machine in "${machines[@]}" ; do
[[ $machine == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue
- COMPREPLY=("${COMPREPLY[@]}" "$machine")
+ COMPREPLY[${#COMPREPLY[@]}]=$machine
done
}
complete -F _ftp -o default ftp