From: Linus Torvalds Date: Wed, 06 Jul 2005 21:36:44 GMT Subject: Re: git-pull-script hates me Message-ID: In-Reply-To: <7v64vnwrwg.fsf@assigned-by-dhcp.cox.net> On Wed, 6 Jul 2005, Junio C Hamano wrote: > > Anybody who is interested in doing this can just move > sq_expand() from diff.c to some public library and expose it in > cache.h. No, that doesn't work at all. "sq_expand()" tries to protect things inside single quotes. That's a totally different problem (and btw, it does so badly: it doesn't quote '\' for example). For a shell command line, there are _tons_ of special characters that you mustn't pass through. Things like ';', '<', '>', '&' all have magic meaning and are not valid in the destination name. Not to mention just simple whitespace. Linus