Re: [PATCH] Replace instances of export VAR=VAL with VAR=VAL; export VAR
- From
David Kastrup <dak@gnu.org>
- Date
- Nov 28, 2007, 14:09 UTC
- Message-ID
- <85prxua2bu.fsf@lola.goethe.zz>
- In-Reply-To
- <Pine.LNX.4.64.0711281355460.27959@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> It might be POSIX, but there are shells that do not like the > expression 'export VAR=VAL'. To be on the safe side, rewrite them > into 'VAR=VAL' and 'export VAR'.
This seems like activism to me: if no supported shell has a problem with that construct, why bother?
There probably should be a list of shells we try supporting, and in particular a list of those where we don't bother.
And if a POSIX construct is supported by all shells we try supporting, I don't see a point in patching it away.
-- David Kastrup, Kriemhildstr. 15, 44793 Bochum