Re: [PATCH] Avoid using non-portable `echo -n` in tests.
- From
- Francis Galiegue <fg@one2team.com>
- Date
- Oct 31, 2008, 19:35 UTC
- Message-ID
- <200810312035.20016.fg@one2team.com>
- In-Reply-To
- <20081031183933.GA3577@sigill.intra.peff.net>
Le Friday 31 October 2008 19:39:33 Jeff King, vous avez écrit : [...]
> > Agreed, and actually I found such a bashism (test ==) last week (though > of course it also broke on FreeBSD). >
As for bash-isms, a hunt for $(...) also looks necessary...
$ grep -rl '\$([^)]\+)' $(find -type f)|wc -l 272
Unless I'm mistaken (and I probably am), the $(...) construct is bash-specific, isn't it?
-- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 fge@one2team.com 40 avenue Raymond Poincaré 75116 Paris