zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _mkdir fixes
@ 2006-11-02  0:03 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2006-11-02  0:03 UTC (permalink / raw)
  To: zsh-workers

Fixes from R.Ramkumar

Index: Completion/Unix/Command/_mkdir
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_mkdir,v
retrieving revision 1.1
diff -u -r1.1 _mkdir
--- Completion/Unix/Command/_mkdir	1 Nov 2006 03:04:13 -0000	1.1
+++ Completion/Unix/Command/_mkdir	2 Nov 2006 00:03:15 -0000
@@ -5,23 +5,23 @@
 typeset -a opt_args
 
 args=(
-  '(-m --mode=)'{-m,--mode=}'[set permission mode]:numeric mode'
+  '(-m --mode)'{-m,--mode=}'[set permission mode]:numeric mode'
   '(-p --parents)'{-p,--parents}'[make parent directories as needed]'
   )
 
-args_zsh=('(-)*: :->dir')
+args_zsh=('(-)*: :->directories')
 
 args_cmd=(
   '(-v --verbose)'{-v,--verbose}'[print message for each created directory]'
   '(- :)--help[display help information]'
   '(- :)--version[display version information]'
-  '*: :->dir'
+  '*: :->directories'
   )
 
 case "$OSTYPE" in
   linux*)
     args_cmd=(
-      '(-Z --context=)'{-Z,--context=}'[set SELinux context]:SELinux context'
+      '(-Z --context)'{-Z,--context=}'[set SELinux context]:SELinux context'
       $args_cmd)
     ;;
 esac
@@ -56,10 +56,10 @@
 _arguments -C -s $args && ret=0
 
 case "$state" in
-  dir)
+  directories)
     if (( $ret )) && [[ ! -prefix - ]] || \
       [[ $variant == zsh && ${#${${words[2,-1]}:#-*}} -gt 0 ]]; then
-      _wanted parent-directory expl \
+      _wanted directories expl \
 	'parent directory (alternatively specify name of directory)' \
 	_path_files -/ || _message 'name of directory'
       ret=0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-02  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-02  0:03 PATCH: _mkdir fixes Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).