NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/52426: Undetected syntax errors in /bin/sh
>Number: 52426
>Category: bin
>Synopsis: Undetected syntax errors in /bin/sh
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 25 01:40:00 +0000 2017
>Originator: Robert Elz
>Release: NetBSD 8.99.1
>Organization:
>Environment:
Irrelevant, any NetBSD /bin/sh (forever).
>Description:
sh accepts both of these lines of nonsense, without error
: ; }
case x in <|() ;; esac
Both can also be observed in dash and the second in the FreeBSD sh.
They are very old ash bugs (FreeBSD have fixed the first one.)
>How-To-Repeat:
Just use input something like one of the above.
>Fix:
Workaround: Don't write gibberish sh code.
Real fix coming soon (as in, already implemented, undergoing testing.)
Home |
Main Index |
Thread Index |
Old Index