tech-userlevel archive

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

Re: bin/47597: local and $() don't play well with each other



On 03/02/13 04:47, Robert Elz wrote:
> Now we have discussed this to death, if I submit a patch for sh(1) that
> explicitly documents this standards non-conformance, will that be applied?

Hi,

I didn't track the details of the argument, but I would hope that
there is a way to coerce your sh program to be compliant, or else
rig it so that $(command -p -v sh) yields one that is.  As rare
as ``var=foo myfunc ; echo ${var+SET BY MISTAKE}'' constructs might
be, it is nice to now that forcing posix mode  will put "portable"
shell scripts into the right environment.  Dumb as it may be.

Thanks!  - Bruce (a tries-to-be portable shell script writer)


Home | Main Index | Thread Index | Old Index