Re: Assignment with command: export only, or sets variable, too?

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

 



On Fri, Apr 09, 2010 at 09:26:02AM +0100, Geoff Clare wrote:
> Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxxx> wrote, on 09 Apr 2010:
> >
> > While we're on this topic, what is the correct output for
> > 
> > 	X=a Y=${X=b} Z=$X sh -c 'echo $Z'
> 
> My reading of the standard is that this should output "b"
> (assuming X is unset beforehand).  But, as I mentioned earlier in
> the thread, this is a strict reading and might not be what was
> intended.

Thank you for your clarifications.

These four patches should help bring dash in-line with the POSIX
requirements.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux