1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

39295: allow -- to appear in the command line passed as an argument

This commit is contained in:
Oliver Kiddle 2016-09-12 23:26:14 +02:00
parent 8e3f6e8919
commit 98581594b5
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2016-09-12 Oliver Kiddle <opk@zsh.org>
* 39295: Completion/Unix/Type/_remote_files: allow '--' to
appear in the command line passed as an argument
* 39287: Completion/Unix/Command/_graphicsmagick,
Completion/Unix/Command/_imagemagick, Completion/X/Command/_okular:
add .tif as a valid extension for TIFF files

View file

@ -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