Subject: bin/325: bug in /bin/sh
To: None <gnats-admin>
From: None <martin@euterpe.owl.de>
List: netbsd-bugs
Date: 07/05/1994 22:05:12
>Number:         325
>Category:       bin
>Synopsis:       sh -c "(>a >b)" gives syntax error: ")" expected
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul  5 22:05:08 1994
>Originator:     Martin Husemann
>Organization:
private
>Release:        current as of 94/7/5
>Environment:
should be generic
System: NetBSD euterpe.owl.de 0.9C NetBSD 0.9C (EUTERPE) #4: Sun Jun 26 16:19:24 MET DST 1994 root@euterpe.owl.de:/usr/src/sys/arch/i386/compile/EUTERPE i386


>Description:
	According to Posix.2 "(>a >b)" should truncate both files "a" and "b"
	to zero length. Bash handles it that way. Our /bin/sh barfs with
	a syntax error.

>How-To-Repeat:
	sh
	cd /tmp
	date > a
	df > b
	(>a >b)
>Fix:
	sorry, none yet.
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------