Re: 'set +o' or '. /dev/fd/0' or?...

2009-07-13 Thread Paolo Bonzini
On 07/13/2009 01:26 PM, Eric Blake wrote: { echo "set -$-"; COMMAND; } | sh This does it, yes. (You've been using too many fifos for the parallel autotest :-). Paolo ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/

Re: 'set +o' or '. /dev/fd/0' or?...

2009-07-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Alfred M. Szmidt on 7/13/2009 5:06 AM: > { set +o; COMMAND; } | sh Required by POSIX, but some older shells don't handle it well. Solaris /bin/sh appears to just ignore it. Older ash gives output that cannot be reparsed as valid c

Re: 'set +o' or '. /dev/fd/0' or?...

2009-07-13 Thread Alfred M. Szmidt
Hi autoguys, I am piping the output of a script to the shell, and using COMMAND | sh would not respect the -e/-x settings of the outer shell. I have thought of two replacements: { set +o; COMMAND; } | sh COMMAND | . /dev/fd/0 The second looks nicer, but it's

'set +o' or '. /dev/fd/0' or?...

2009-07-13 Thread Paolo Bonzini
Hi autoguys, I am piping the output of a script to the shell, and using COMMAND | sh would not respect the -e/-x settings of the outer shell. I have thought of two replacements: { set +o; COMMAND; } | sh COMMAND | . /dev/fd/0 The second looks nicer, but it's not portable. Actually I