Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Problems with zargs (Was: xargs should be a builtin)



On Thu, 12 Apr 2012 10:28:22 +0100
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> --- zargs.old   2012-04-12 10:26:20.658633028 +0100
> +++ /usr/share/zsh/functions/Misc/zargs 2012-04-12 10:27:20.709077765 +0100
> @@ -174,7 +174,7 @@
>  else set -- "${(@)argv[1,end-1]}"
>  fi
> 
> -if [[ -n $command ]]
> +if (($#command))
>  then (( c = $#command - 1 ))
>  else command=( print -r -- )
>  fi

Thanks, I've committed it with that.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author