Re: [PATCH 2/2] test-lint: detect 'export FOO=bar'
- From
Thomas Rast <trast@inf.ethz.ch>
- Date
- Jul 9, 2013, 09:28 UTC
- Message-ID
- <87a9lwgk0e.fsf@linux-k42r.v.cablecom.net>
- In-Reply-To
- <51DB1399.9020307@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
>> + /^\s*export\s+[^=]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && export FOO)'; > I have a slightly tighter reg exp in my tree, but credits should go to Thomas: > > /^\s*export\s+\S+=\S+/
Hmm, is that correct? I would expect shells that have problems with 'export FOO=bar' to also fail on 'export FOO=' (i.e. set to empty string and export).
--
Thomas Rast
trast@{inf,student}.ethz.ch