Xref: utzoo comp.unix.shell:1384 alt.sys.sun:2600 Path: utzoo!utgpu!cs.utexas.edu!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.shell,alt.sys.sun,vu.general Subject: a few bugs in the Bourne shell of SunOS 4.0.3c and 4.1.1 Message-ID: <8917@star.cs.vu.nl> Date: 2 Feb 91 01:40:10 GMT Sender: news@cs.vu.nl Reply-To: maart@cs.vu.nl (Maarten Litmaath) Followup-To: comp.unix.shell,alt.sys.sun Organization: VU Dept. of Computer Science, Amsterdam, The Netherlands Lines: 59 Note: followups to comp.unix.shell,alt.sys.sun. The following 1-line command makes sh dump core (just be patient): cat << `date` The following function definition is handled incorrectly: say(){ cat <<- EOF $* EOF } The body of any function must _only_ be evaluated when the function is _invoked_, not when it is _defined_. That sh fails in the example can be shown as follows: set | sed '/^say(/,/^}$/!d' This will print something like this (without indentation): say(){ cat 0< in sci.skeptic)