From: Vincent Stemen <zsh@hightek.org>
To: zsh-users@sunsite.dk
Subject: FreeBSD compatability feature request
Date: Sat, 17 Apr 2004 17:22:22 -0500 [thread overview]
Message-ID: <20040417222222.GA27230@quark.hightek.org> (raw)
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
next reply other threads:[~2004-04-17 22:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-17 22:22 Vincent Stemen [this message]
2004-04-18 18:10 ` Peter Stephenson
2004-04-19 11:28 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040417222222.GA27230@quark.hightek.org \
--to=zsh@hightek.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).