Re: sh portability questions

2005-09-28 Thread Ralf Wildenhues
* Akim Demaille wrote on Wed, Sep 28, 2005 at 01:36:11PM CEST: Thanks, I didn't know. How about this then? ( foo=bar test_local () { local foo=foo } test_local test $foo = bar ) || local () { case $1 in *=*) eval $1;; esac } That does

sh portability questions

2005-09-27 Thread Akim Demaille
Now that there are no doubts about the portability of shell functions (in the sense that there's always a shell on the machine that supports function ---and maybe the documentation should reflect this), I'm curious about the support of return and local. Is there anything known about them? ISTR

Re: sh portability questions

2005-09-27 Thread Paul Eggert
Akim Demaille [EMAIL PROTECTED] writes: Now that there are no doubts about the portability of shell functions (in the sense that there's always a shell on the machine that supports function ---and maybe the documentation should reflect this), Yes, it should. I'm curious about the support of