From owner-freebsd-doc Thu Nov 28 4:50: 3 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D53A537B401 for ; Thu, 28 Nov 2002 04:50:01 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3113F43EB2 for ; Thu, 28 Nov 2002 04:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gASCo1x3055553 for ; Thu, 28 Nov 2002 04:50:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gASCo1Zn055552; Thu, 28 Nov 2002 04:50:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4914A37B401 for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/45820: [PATCH] to sh(1) manual page: trapsasync Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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