From molter@tin.it  Thu Nov 28 04:46:18 2002
Return-Path: <molter@tin.it>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4914A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Nov 2002 04:46:18 -0800 (PST)
Received: from www.example.org (dhcp-nic-val-26-98.cisco.com [64.103.26.98])
	by mx1.FreeBSD.org (Postfix) with SMTP id A796143EBE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Nov 2002 04:46:03 -0800 (PST)
	(envelope-from molter@tin.it)
Received: (qmail 2574 invoked by uid 1000); 28 Nov 2002 12:45:50 -0000
Message-Id: <20021128124550.2573.qmail@cobweb.example.org>
Date: Thu, 28 Nov 2002 13:45:50 +0100
From: Marco Molteni <molter@tin.it>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] to sh(1) manual page: trapsasync

>Number:         45820
>Category:       docs
>Synopsis:       [PATCH] to sh(1) manual page: trapsasync
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 28 04:50:00 PST 2002
>Closed-Date:    Tue Dec 17 12:52:34 PST 2002
>Last-Modified:  Tue Dec 17 12:52:34 PST 2002
>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:
State-Changed-From-To: open->analyzed 
State-Changed-By: trhodes 
State-Changed-When: Mon Dec 16 09:05:15 PST 2002 
State-Changed-Why:  
I'm following up. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45820 
Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Mon Dec 16 09:05:36 PST 2002 
Responsible-Changed-Why:  
Assign this PR to me so its not lost. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45820 
State-Changed-From-To: analyzed->closed 
State-Changed-By: trhodes 
State-Changed-When: Tue Dec 17 12:51:56 PST 2002 
State-Changed-Why:  
Committed to both current and stable!  Thanks for the submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45820 
>Unformatted:
