Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 1995 01:18:31 +0200
From:      Guido Muesch <odiug@darkstar.informatik.rwth-aachen.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/660: /bin/sh has problem with redirection.
Message-ID:  <199508072318.BAA00302@darkstar.informatik.rwth-aachen.de>
Resent-Message-ID: <199508072320.QAA06473@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help

>Number:         660
>Category:       bin
>Synopsis:       /bin/sh has problem with redirection.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug  7 16:20:00 PDT 1995
>Last-Modified:
>Originator:     Guido Muesch
>Organization:
RWTH-Aachen
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>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

>Audit-Trail:
>Unformatted:
>foo
Syntax error: end of file unexpected
make: *** [foo] Error 2




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508072318.BAA00302>