*** SERIOUS BUG IN SVR3 (with fix) ***
Ingo Cyliax
cyliax at ea.ecn.purdue.edu
Fri May 20 01:47:12 AEST 1988
In article <675 at vsi.UUCP> friedl at vsi.UUCP (Stephen J. Friedl) writes:
>Hi net.folks,
> A customer was upgrading from 2.0.4 to 3.1, and his
>/etc/TIMEZONE file had the following in it:
>
> # set the timezone
> <TAB> TZ=PST8PDT
> #<TAB> TZ=PST7PDT
>
> Init runs all its commands with:
>
> /bin/sh -c "exec COMMAND"
>
.....
>
> sh: "#^ITZ=PST7PDT": not an identifier
Sounds like a bug in Sys V sh, it should just ignore lines that start with
"#". It should do something like this ... :
Script started on Thu May 19 10:44:30 1988
cyliax.ea % cat > t.out
# echo Hello World
echo Hello World
cyliax.ea % chmod +x t.out
cyliax.ea % sh -c "exec t.out"
Hello World
cyliax.ea %
script done on Thu May 19 10:45:19 1988
Note that this only printed 1 "Hello World" !.
--
/* Ingo Cyliax *
* ...!ihnp4!pur-ee!cyliax ECN, Electrical Engineering Bldg. *
* cyliax at ecn.purdue.edu Purdue University, W. Lafayette,IN 47907 *
* ing at cc.purdue.edu (317) 494-3473 / (317) 463-1747 after 5pm */
More information about the Comp.sys.att
mailing list