Re: User-relative paths
- From
Junio C Hamano <junkio@cox.net>
- Date
- Oct 23, 2005, 23:02 UTC
- Message-ID
- <7v8xwjx2f9.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0510231427230.10477@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 23 quoted lines
> It's incomplete and almost certainly buggy and generally broken, but
> here's somethign that you _could_ install as "git-shell", and then put
> that as somebodys shell in /etc/passwd, and it's a start. A very rough
> start.
>
> Somebody else gets to test it out ;)
>
> + if (c != '\'') {
> + *dst++ = c;
> + continue;
> + }
> + switch (*++src) {
> + case '\0':
> + *dst = 0;
> + return arg;
> + case '\\':
> + if (*++src == '\'' &&
> + *++src == '\'') {
> + *dst = '\'';
> + continue;
> + }
> + /* Fallthrough */
> + default:I think this misses HPA's addition to minimally suppport csh braindamage (bang bang).