Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2002 13:45:50 +0100
From:      Marco Molteni <molter@tin.it>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/45820: [PATCH] to sh(1) manual page: trapsasync
Message-ID:  <20021128124550.2573.qmail@cobweb.example.org>

next in thread | raw e-mail | index | archive | help

>Number:         45820
>Category:       docs
>Synopsis:       [PATCH] to sh(1) manual page: trapsasync
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 28 04:50:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Marco Molteni
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Citello Networks
>Environment:
System: FreeBSD cobweb.example.org 4.7-STABLE

>Description:
The sh manual page uses the "asynctraps" keyword, which doesn't exist.
The correct keyword is "trapsasync".

I just made a grep of "trap" in the sh source code to find out why my shell
script didn't work.

>How-To-Repeat:
Try a shell script with the line 
    set -o asynctraps
and then with
    set -o trapsasync

>Fix:
Apply patch:

--- sh.1.orig   Thu Nov 28 13:35:50 2002
+++ sh.1        Thu Nov 28 13:36:12 2002
@@ -257,7 +257,7 @@
 running (i.e. when set with the
 .Ic set
 command).
-.It Fl T Li asynctraps
+.It Fl T Li trapsasync
 When waiting for a child, execute traps immediately.
 If this option is not set,
 traps are executed after the child exits,

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021128124550.2573.qmail>