-----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 commands.
> COMMAND | . /dev/fd/0
Depends on the file system providing it. But named fifos might be more
widely supported; does this look any better?
mkfifo fifo
(COMMAND >fifo)&
. fifo
rm fifo
> Can't you use? COMMAND | sh +x
No, that always sets +x in the child shell, even when it was not set in
the parent.
Or, one other idea:
{ echo "set -$-"; COMMAND; } | sh
- --
Don't work too hard, make some time for fun as well!
Eric Blake [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpbGf8ACgkQ84KuGfSFAYDvhwCcC7ax2HnE1GjcXRADBREe45jI
2gkAnjG4JmP79aAOxJMCQNuJcDW1IBya
=mHxP
-----END PGP SIGNATURE-----
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf