Skip to content

Commit

Permalink
quote a
Browse files Browse the repository at this point in the history
  • Loading branch information
joknarf committed Feb 5, 2024
1 parent 3ce7255 commit 9ea00fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions complete-ng
Original file line number Diff line number Diff line change
Expand Up @@ -400,15 +400,14 @@ complete() {
! [[ $1 =~ $exc ]] && { func="$1"; shift; set -- "$@" _complete-ng; continue; }
}
[ "$1" = "-F" ] && fn=1 && cmd=()
[ $1 = -- ] || cmd+=("$1")
[ "$1" = -- ] || cmd+=("$1")
set -- "$@" "$1"
shift
done
[[ "$*" =~ -F\ [^\ ]*$ ]] && set -- "$@" "''" && cmd=("''")
[[ "$*" =~ -F\ [^\ ]*$ ]] && set -- "$@" "''" && cmd=( "" )
[ "$func" ] && {
local c
for c in "${cmd[@]}";do
c=${c//"'"/}
eval "_compfunc_${c//[^a-zA-Z0-9_]/_}=$func"
done
}
Expand Down

0 comments on commit 9ea00fe

Please sign in to comment.