From: David Kastrup Date: Thu, 02 Aug 2007 14:20:44 GMT Subject: Re: Shell script cleanups/style changes? Message-ID: <86sl72j9vn.fsf@lola.quinscape.zz> In-Reply-To: <20070802140011.GN29424@schiele.dyndns.org> Robert Schiele writes: > On Thu, Aug 02, 2007 at 12:44:22PM +0200, David Kastrup wrote: >> ! logfile="${1#-?}" > > You can't do something like that on /bin/sh on many systems (for > instance Solaris). Sigh. It's in Posix. I've seen a lot of "modern" constructs in the Shell scripts of git (not least of all the eval hackery that is currently used instead of this), so do you actually have positive knowledge that the existing git stuff runs fine on such systems, and this wouldn't? I don't have access to Solaris systems, so I have to take your word on it, but I find it somewhat surprising that they would not follow Posix here. -- David Kastrup