Bug 660 - /bin/sh has problem with redirection.
Summary: /bin/sh has problem with redirection.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-08-08 00:20 UTC by Guido Muesch
Modified: 1996-02-07 23:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Muesch 1995-08-08 00:20:00 UTC
/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.

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
How-To-Repeat: create a Makefile:
--------------------
foo:
	>foo
--------------------
then:
$ make
Comment 1 mpp freebsd_committer freebsd_triage 1996-02-07 22:57:35 UTC
State Changed
From-To: open->closed

Fixed in 2.1.