[comp.sys.encore] A bug in cron ? csh ? my understanding ?

george@CIS.OHIO-STATE.EDU (George M. Jones) (06/10/90)

Under Umax 4.4 R4.0 I create the following innocuous little script
called /etc/foo

  #! /bin/csh

  /bin/echo foo > /tmp/foo.out

Then I put an entry in crontab to run the script.  After the script
runs, lo, and behold the file /tmp/foo.out is create...but it is zero
length...stranger still simply changing the shell to /bin/sh yeilds
the expected behavior (creating a file with the word "foo" in it.
For an external reference I did the same thing on a SunOS 3.5 system &
got the expected behavior (non-zero length files) with both csh and
sh.  I also compiled the straight bsd 4.3 (pre-tahoe) cron on the
multimax and tried that but that seemed to have no effect.

Curious and a little confused,
---George
OSU Computer & Inf. Science 2036 Neil Ave.,Columbus,Ohio 43210. 614-292-7325
george@cis.ohio-state.edu or ...!osu-cis!george
Remember kids, if some weirdo in a blue suit offers you some DOS, just say no !