From odiug@darkstar.informatik.rwth-aachen.de  Mon Aug  7 16:18:07 1995
Received: from darkstar.informatik.rwth-aachen.de (darkstar.Informatik.RWTH-Aachen.DE [137.226.17.23])
          by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id QAA06387
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 7 Aug 1995 16:18:06 -0700
Received: (from odiug@localhost) by darkstar.informatik.rwth-aachen.de (8.6.11/8.6.9) id BAA00302; Tue, 8 Aug 1995 01:18:31 +0200
Message-Id: <199508072318.BAA00302@darkstar.informatik.rwth-aachen.de>
Date: Tue, 8 Aug 1995 01:18:31 +0200
From: Guido Muesch <odiug@darkstar.informatik.rwth-aachen.de>
Reply-To: odiug@darkstar.informatik.rwth-aachen.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: /bin/sh has problem with redirection.
X-Send-Pr-Version: 3.2

>Number:         660
>Category:       bin
>Synopsis:       /bin/sh has problem with redirection.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug  7 16:20:00 PDT 1995
>Closed-Date:    Wed Feb 7 14:57:35 PST 1996
>Last-Modified:  Wed Feb  7 15:00:50 PST 1996
>Originator:     Guido Muesch
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>Organization:
RWTH-Aachen
>Environment:
Freshly installed FreeBSD 2.0.5R

>Description:
/bin/sh has a problem when called from make with a line like:
	>foo
You will get an error:
Syntax error: end of file unexpected
*** Error code 2

Stop.

>How-To-Repeat:
create a Makefile:
--------------------
foo:
	>foo
--------------------
then:
$ make
>Fix:
I installed the pdksh and a stripped down version of the pdksh which is more
or less a simple sh as /bin/sh. The pdksh also seems a lot smaller:
-rwxr-xr-x  1 bin  bin  217088 Jul  4 22:38 ksh
lrwxr-xr-x  1 bin  bin       3 Aug  8 01:16 sh -> ksh
-r-xr-xr-x  1 bin  bin  299008 Jun 10 11:48 sh.old

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Wed Feb 7 14:57:35 PST 1996 
State-Changed-Why:  
Fixed in 2.1. 
>Unformatted:
 >foo
 Syntax error: end of file unexpected
 make: *** [foo] Error 2
 
