Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: Shell quoting

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2016-06-15 22:42:06

Linus Torvalds wrote:
Does anybody really still use tcsh? It's a broken mess.
Yes.
Junio's "sq_quote()" works wonderfully on any valid shells. The fact that 
tcsh expands ! even inside single quotes is just pure braindamage.
You could expand "sq_quote" to handle '!' and '\' characters the exact
same way it handles the single tick (end single-tick quoting, do \! or \\
and start single-tick quoting again) and that might be good enough for
tcsh.
It seems easier to just \-escape any special characters.

	-hpa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help