Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
FreeBSD compatability feature request
- X-seq: zsh-users 7359
- From: Vincent Stemen <zsh@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: FreeBSD compatability feature request
- Date: Sat, 17 Apr 2004 17:22:22 -0500
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Zsh's sh compatibility works great for the most part. However, there
is one unimplemented feature that I know of that prevents us from
being able to use it as a plug in replacement for /bin/sh on FreeBSD.
The "set -T" option. This is used in a few places in the FreeBSD-5.x
init scripts.
Here is the FreeBSD manual entry:
-T trapsasync
When waiting for a child, execute traps immediately. If this
option is not set, traps are executed after the child exits,
as specified in IEEE Std 1003.2 (``POSIX.2'') This nonstandard
option is useful for putting guarding shells around children
that block signals. The surrounding shell may kill the child
or it may just return control to the tty and leave the child
alone, like this:
sh -T -c "trap 'exit 1' 2 ; some-blocking-program"
I know that normally -T turns on the cdablevars option but are you
willing to consider adding this feature for FreeBSD compatibility when
in sh compatibility mode? Otherwise, is there any other option in zsh
that implements this same feature?
Regards,
Vincent
--
Vincent Stemen
Avoid the VeriSign/Network Solutions domain registration trap!
http://www.InetAddresses.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author