Path: utzoo!attcan!uunet!oddjob!uwvax!dogie!uwmcsd1!ig!agate!ucbvax!decwrl!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!ea.ecn.purdue.edu!cyliax From: cyliax@ea.ecn.purdue.edu (Ingo Cyliax) Newsgroups: comp.sys.att Subject: Re: *** SERIOUS BUG IN SVR3 (with fix) *** Message-ID: <3142@ea.ecn.purdue.edu> Date: 19 May 88 15:47:12 GMT References: <675@vsi.UUCP> Reply-To: cyliax@ea.ecn.purdue.edu.UUCP (Ingo Cyliax) Distribution: comp Organization: Purdue University Engineering Computer Network Lines: 38 In article <675@vsi.UUCP> friedl@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 > TZ=PST8PDT > # 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@ecn.purdue.edu Purdue University, W. Lafayette,IN 47907 * * ing@cc.purdue.edu (317) 494-3473 / (317) 463-1747 after 5pm */