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

Re: Chatty little precompiler for _arguments



On Sep 23, 11:12pm, Tanaka Akira wrote:
} Subject: Re: Chatty little precompiler for _arguments
}
} In article <199909231028.MAA24049@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
}   Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
} 
} > The result is maybe not want one wants exactly, e.g. a NUL is printed
} > as `^@' (its the format used by `bindkey'). Is that ok?
} 
} No. I want the form which result of expansion is original string.

Well, somebody offline just asked me about implementing "cat -v" entirely
within zsh, so I'm actually pretty happy with what Sven did.  Although I
begin to think that five q might be going a little overboard to add what
Tanaka wants as well.

Further, with extendedglob, the output of ${(qqqq)...} can't be "eval"d
without quoting it yet again, because ^ is a metacharacter.  So maybe
we should use a different letter -- perhaps ${(v)...} like cat? -- for
Sven's (qqqq).

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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