From owner-freebsd-bugs Tue Jul 9 10:40:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58DCB37B401 for ; Tue, 9 Jul 2002 10:40:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D13F43E31 for ; Tue, 9 Jul 2002 10:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g69He2JU049565 for ; Tue, 9 Jul 2002 10:40:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g69He2u6049563; Tue, 9 Jul 2002 10:40:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0861E37B400 for ; Tue, 9 Jul 2002 10:38:02 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C277A43E09 for ; Tue, 9 Jul 2002 10:38:01 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g69Hc1OT046274 for ; Tue, 9 Jul 2002 10:38:01 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g69Hc1i0046273; Tue, 9 Jul 2002 10:38:01 -0700 (PDT) Message-Id: <200207091738.g69Hc1i0046273@www.freebsd.org> Date: Tue, 9 Jul 2002 10:38:01 -0700 (PDT) From: Chet Ramey To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/40386: Parsing problem with /bin/sh Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40386 >Category: bin >Synopsis: Parsing problem with /bin/sh >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 09 10:40:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Chet Ramey >Release: 4.6-RELEASE, 5.0-CURRENT >Organization: Case Western Reserve University >Environment: FreeBSD quartz.ins.cwru.edu 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Tue Jul 2 09:13:32 EDT 2002 chet@quartz.ins.cwru.edu:/usr/obj/usr/src/sys/CNS-OPTIPLEX i386 >Description: There is a parsing problem with /bin/sh. The attached script should not work without a backslash at the end of the first line, but sh accepts it nevertheless. This faulty syntax is used in /usr/libexec/locate.mklocatedb (/usr/src/usr.bin/locate/locate/mklocatedb.sh). >How-To-Repeat: quartz(2)# cat x1 awk '{print 12345}' Fix: The patch for mklocatedb.sh is obvious; lines 79 and 87. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message