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

Re: append to history entry?



On 27/12/16 09:28 PM, Daniel Shahaf wrote:

...
2) When interpolating a variable into a string that will be parsed as
zsh code, escape that variable using ${${(q)}}.

But yes, you have to do (2) yourself.

I hope this helped...

Cheers,

Daniel

Yes, it helps a great deal. I can't say I get it yet, but I see where you are coming from. Indeed, consistency must trump everything. " ${${(q)}} " seems byzantine but if it really is unavoidable -- it could not have been made simpler -- then that's the way it is. I don't care about the 'extra' keystrokes, I care that code helps you to do what you want to do, instead of fighting against you. And that it does what you might reasonably expect it to do. Transparency should be a virtue. When I see the necessity, I'll stop chafing. Anyway, I tax everyone's patience, so enough of this for now.





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