[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: POSIX shell clarification



Decklin Foster <decklin@red-bean.com> wrote:
> (I'm not sure where to send this, but it's of interest for making
> packages containing shell scripts policy-compliant, which I'm currently
> trying to do, so...)
> 
> bash and dash differ in their handling of variable assignments. To wit:
> 
>  bash$ FOO=$(false) || echo failed
>  failed
> 
>  dash$ FOO=$(false) && echo worked
>  worked

This is definitely a (recent) bug in dash.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: