Stephane CHAZELAS <stephane.chaze...@gmail.com> wrote:

> 2017-05-24 17:15:25 +0200, Joerg Schilling:
> > Stephane CHAZELAS <stephane.chaze...@gmail.com> wrote:
> [...]
> > > $ a=1 ./sh -o posix -c 'a=2; printenv a'
> > > 1
> > >
> > > POSIX requires 2 to be output there (assuming printenv a command
> > > to print the value of a given environment variable).
> > 
> > Do you have a pointer to the related text?
> [...]
>
> http://pubs.opengroup.org/onlinepubs/9699919799.2016edition/utilities/V3_chap02.html#tag_18_05_03

OK, thank you for the pointer.

Switching the behavior would be simple, I whould need to decide whether I 
implement this behavior in the case when bosh is neither called as 
/usr/xpg4/bin/sh, nor given set -o posix.

Jörg

-- 
 EMail:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
    joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

Reply via email to