NetBSD Problem Report #325

From gnats  Tue Jul  5 21:50:32 1994
Received: from hermes.hrz.uni-bielefeld.de (hermes.hrz.uni-bielefeld.de [129.70.4.55]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id VAA06848 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 5 Jul 1994 21:50:31 -0700
Message-Id: <m0qLNMM-000BBnC@euterpe.owl.de>
Date: Wed, 6 Jul 94 05:09 WET DST
From: martin@euterpe.owl.de
Reply-To: martin@euterpe.owl.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: bug in /bin/sh
X-Send-Pr-Version: 3.2

>Number:         325
>Category:       bin
>Synopsis:       sh -c "(>a >b)" gives syntax error: ")" expected
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 05 22:05:08 +0000 1994
>Closed-Date:    Thu Jul 07 21:12:47 +0000 1994
>Last-Modified:  
>Originator:     Martin Husemann
>Release:        current as of 94/7/5
>Organization:
private
>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:
	This was a simple error in the parser.  There was also a related
	bug that caused `>foo;' to not work.  Both are fixed with a small
	patch to parser.c.  - mycroft

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Thu Jul 7 14:12:47 PDT 1994 
State-Changed-Why:  
Fixed. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.