Thread (2 messages) 2 messages, 2 authors, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: Shell quoting · Junio C Hamano <hidden> · 2016-06-15
  • Re: Shell quoting · Linus Torvalds <torvalds@osdl.org> · 2016-06-15

Re: Shell quoting

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:06


On Thu, 15 Sep 2005, Junio C Hamano wrote:
I vaguely recall you had a code that assumes what sq_quote()
produces and unquote it without using shell.  If somebody does
the above change for '!' and '\', that code may need to be
checked and adjusted as well.
I sent out a trivial "push-shell" that was meant to be usable as a login 
shell for an ssh connection that only accepted pushes (and could perhaps 
be extended to also allow some administrative stuff like creating new 
archives etc).

In that thing, push-shell.c: parse_argument() would need to be trivially
updated.

I didn't ever test it, and I never got any feedback on it, so.. If anybody 
is interested in it, I still have it, although I think a better place to 
find it is probably on the git mailing list archives. I've not done any 
other work on it.

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