Re: [PATCH] t0300-credentials: Word around a solaris /bin/sh bug
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 3, 2012, 01:02 UTC
- Message-ID
- <7vr4ycu3ty.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120202200240.GC9246@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I wonder if a better solution is to use a known-good shell instead of > trying to work around problems in a bogus shell.
Yeah, I think that is a better approach.
What prevents us from doing 's|^#! */bin/sh|$#$SHELL_PATH|' on everything in t/ directory (I am not suggesting to do this. I just want to know if there is a reason we want hardcoded "#!/bin/sh" for some instances).