-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 7 Aug 2001, Jan Schaumann wrote:

> gino peregrini <[EMAIL PROTECTED]> wrote:
> > On Tuesday 07 August 2001 14:17, Jan Schaumann wrote:
> > > $> su
> > > $> echo -e "#!/bin/sh\n\nexec /usr/bin/blackbox"
>
> > I had to edit the command a little. My shell didn't want the ! and there
> > was extra new-line.
> >
> > I really appreciate the help from you, Jamin, and and John. I've got it
> > working, but (maybe more important) I've learned more about BB and Linux.
>
> See, and I've learned something about different shells now.  Apparently,
> bash and (t)csh don't like "#!/bin/sh" in an echo, while ksh doesn't
> mind.  I forgot that "!" is a special character (history) in other
> shells - now how does one DO "echo "#!/bin/sh" in, say, bash?  Anybody?

how about:
echo "\#\!/bin/sh"

xOr
- -- 
you have no chance to survive make your time
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7cFPI8mPQRGtSu14RAuo8AJ4rsLmgdE15GkmXC3CLjYXgPmyhiQCcCW6r
TWCn4BB591a2cIXZMuGcQ+s=
=5IgA
-----END PGP SIGNATURE-----

Reply via email to