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

Re: first adventures



On Oct 30,  6:59pm, Ray Andrews wrote:
>
>        # We only want the arguments so chop off the command itself:
>        chop_cmd=${TLC/$0/}
>        array=("${=chop_cmd}")

If you do this ...

	array=( ${(z)TLC} )
	chop_cmd = $array[1]
	shift array

... then this ...

> ... I think I can't even quibble about the quoted strings not being 
> treated as single arguments

... won't be a quibble any more.  Or you could even start out with TLC
as an array by doing TLC=( ${(z)ZSH_DEBUG_CMD} ) in TRAPDEBUG.

(We've drifted back to stuff that would be fine on zsh-users now ...)



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