Subject: bin/11317: /bin/sh ignores unbalanced ) in ``s
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@rfhpc8321.fh-regensburg.de>
List: netbsd-bugs
Date: 10/26/2000 08:25:14
>Number: 11317
>Category: bin
>Synopsis: /bin/sh ignores unbalanced ) in ``s
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Oct 26 08:25:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Hubert Feyrer
>Release: netbsd-1-5 as of 20001026 (memalloc.c,v 1.21.10.1)
>Organization:
>Environment:
System: NetBSD noon 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (NOON) #52: Sun Oct 8 23:03:52 MEST 2000 feyrer@noon:/usr/cvs/src-1.5/sys/arch/i386/compile/NOON i386
>Description:
Our /bin/sh seems to ignore any unbalanced trailing ')'s in
expressions evaluated in ``s.
>How-To-Repeat:
noon% sh
$ echo `date )))`
Thu Oct 26 17:16:49 MEST 2000
$ echo `date)))`
Thu Oct 26 17:16:58 MEST 2000
$ echo `date)`
Thu Oct 26 17:17:03 MEST 2000
$
>Fix:
No clue.
The same thing on solaris:
rfhpc8317% sh
$ echo `date )))`
syntax error: `)' unexpected
$ echo `date)))`
syntax error: `)' unexpected
$ echo `date)`
syntax error: `)' unexpected
$
(same for ksh)
>Release-Note:
>Audit-Trail:
>Unformatted: