1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 18:10:56 +01:00

27233: improved _values handling of optional arguments

mount -o loop= argument is optional
This commit is contained in:
Peter Stephenson 2009-08-28 15:10:27 +00:00
parent c326bf0d30
commit 5b80d50ad3
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2009-08-28 Peter Stephenson <pws@csr.com>
* 27233: Completion/Base/Utility/_values,
Completion/Unix/Command/_mount: improve _values handling of
optional arguments so that list separate removes the argument
separator; use this to make "mount -o loop" complete better.
2009-08-21 Peter Stephenson <pws@csr.com>
* 27228: Functions/Newuser/zsh-newuser-install: add a clear
@ -12099,5 +12106,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4764 $
* $Revision: 1.4765 $
*****************************************************

View file

@ -59,7 +59,7 @@ if compvalues -i "$@"; then
_describe "$descr" \
noargs "$sep[@]" -M 'r:|[_-]=* r:|=*' -- \
args -S "${argsep}" -M 'r:|[_-]=* r:|=*' -- \
opts -qS "${argsep}" -M 'r:|[_-]=* r:|=*'
opts -qS "${argsep}" -r "${argsep}${sep} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
curcontext="$oldcontext"

View file

@ -322,7 +322,7 @@ if (( ! $+_fs_any )); then
'(nosuid)suid[use suid and sgid bits]'
'(async)sync[do I/O synchronously]'
'dirsync[perform directory updates synchronously]'
'loop[use loopback device]:loopback device:_files'
'loop[use loopback device]::loopback device:_files'
'encryption[enable encryption]:cypher'
'keybits[set number of bits in encryption key]:key size:(64 128 160 192 256)'
'offset[specify data start for loopback mount]:offset (bytes)'