Re: [RFC/PATCH] tests: add initial bash completion tests
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 6, 2012, 23:12 UTC
- Message-ID
- <CAMP44s3-Ji33oG=Os_O9KpxawWzZzmiZ04QMTokQ+K6_x-31MA@mail.gmail.com>
- In-Reply-To
- <20120406201926.GA1677@sigill.intra.peff.net>
On Fri, Apr 6, 2012 at 11:19 PM, Jeff King <peff@peff.net> wrote:
Show 8 quoted lines
> I think you need to start with something like: > > #!/bin/sh > > if ! type bash; then > echo '1..0 # SKIP skipping bash tests, bash not available' > exit 0 > fi
What about this instead?
--- #!/bin/sh
if type bash >/dev/null 2>&1 then # execute inside bash [ -z "$BASH" ] && exec bash $0 else echo '1..0 #SKIP skipping bash completion tests; bash not available' exit 0 fi ---
-- Felipe Contreras