From: Mike Ralphson Date: Tue, 17 Feb 2009 09:29:57 GMT Subject: Re: [PATCH v2 4/5] t3301: use test_must_fail instead of ! Message-ID: In-Reply-To: <20090215181818.GA2291@coredump.intra.peff.net> 2009/2/15 Jeff King : > On Sun, Feb 15, 2009 at 05:11:40PM +0100, Thomas Rast wrote: >> Is there a "bare minimum" POSIX shell that I can run the tests under, >> to save myself such embarassment in the future? > > Using "dash" will catch bash-isms, and is pretty commonly available, I > think. But this behavior, IIRC, happens on FreeBSD's /bin/sh, which is > derived from "ash" (so is "dash", but I they have long since diverged). > > There are even more quirks on more exotic systems, I expect, though I > have to admit that I gave up on Solaris and just started using bash > there. :) > > So I don't think there is a catch-all shell that will help you, but some > "ash" variant is probably your best bet. posh? http://packages.debian.org/lenny/posh I've heard that if you unset POSIXLY_CORRECT it just sits there and hums until you set it again. 8-) Mike