> Hi All; > > Please forgive me for butting in. > > But I have been telling (shouting actually) people to > ALWAYS ALWAYS > start their scripts with a #!<explicit shell> > > Forgive me if I am totally off topic here, but are > you guys (and gals?) > saying that it is not necessary??????
It *was* very much necessary when writing start and stop methods. For example, Sun used to deliver init.d scripts which assumed that root's shell was /bin/sh, so if you were logged in as root, ran a different shell (tcsh) and tried to execute one of these script, of course it wouldn't work. The solution to this was to a) NEVER change root's shell in /etc/passwd b) explicitly state #!/bin/sh in the startup scripts. Nowdays it's not such a big issue, but one still needs to be careful and aware of it. This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
