From 98581594b50d7b0c9fc3cb885028522b14a88304 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 12 Sep 2016 23:26:14 +0200 Subject: 39295: allow -- to appear in the command line passed as an argument --- Completion/Unix/Type/_remote_files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Type/_remote_files b/Completion/Unix/Type/_remote_files index 54bd438eb..dbfb56134 100644 --- a/Completion/Unix/Type/_remote_files +++ b/Completion/Unix/Type/_remote_files @@ -38,9 +38,9 @@ if zstyle -T ":completion:${curcontext}:files" remote-access; then zparseopts -D -E -a args / g:=glob h:=host (( $#host)) && shift host || host="${IPREFIX%:}" - args=( ${argv[1,(I)--]} ) + args=( ${argv[1,(i)--]} ) shift ${#args} - args[-1]=() + [[ args[-1] = -- ]] && args[-1]=() # Command to run on the remote system. cmd="$1" shift -- cgit 1.4.1