zsh-users
 help / color / mirror / code / Atom feed
* FreeBSD compatability feature request
@ 2004-04-17 22:22 Vincent Stemen
  2004-04-18 18:10 ` Peter Stephenson
  2004-04-19 11:28 ` Peter Stephenson
  0 siblings, 2 replies; 3+ messages in thread
From: Vincent Stemen @ 2004-04-17 22:22 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-19 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-17 22:22 FreeBSD compatability feature request Vincent Stemen
2004-04-18 18:10 ` Peter Stephenson
2004-04-19 11:28 ` Peter Stephenson

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).