[comp.unix.questions] help removing a file

gt0178a@prism.gatech.EDU (BURNS,JIM) (09/07/90)

in article <1212@tardis.Tymnet.COM>, jms@tardis.Tymnet.COM (Joe Smith) says:
> The reason that works is because an executable script that does not start
> with "#", "#!/bin/xxx" or ":" is executed by /bin/sh instead of your default
> shell, 

Not on any system I've worked on. It always defaults to $SHELL, your
current shell. If this wasn't true, I couldn't use ksh aliases and
functions inside my scripts w/o #!/bin/ksh (or whatever). If what you mean
is that *csh* defaults to /bin/sh w/o one of your constructs, this is
true.
-- 
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a@prism.gatech.edu

guy@auspex.auspex.com (Guy Harris) (09/08/90)

>I have found that the C-shell from Sun (BSD) strips off the 8th bit of all
>arguments passed to any program.

Yup; UNIX shells have traditionally used the 8th bit internally for
quoting, and strip it off before passing arguments.  AT&T fixed the
Bourne shell in S5R3, and that version of the Bourne shell is the basis
of the one in SunOS 4.x.  Sun fixed the C shell in SunOS 4.1, and that
version of the C shell is the basis of the one in S5R4.