xOr <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, 7 Aug 2001, Jan Schaumann wrote:
> > 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"
Actually...
[jschauma@www jschauma]$ echo "\#\!/bin/sh"
\#\!/bin/sh
[jschauma@www jschauma]$ echo '#!/bin/bash'
#!/bin/bash
[jschauma@www jschauma]$
Some kind soul already pointed it out to me in an email, after I tried
several '#"!"' and "#'!'" and "'\$@asd1&*('" variations :)
Not a day goes by that I don't learn something new...
-Jan
--
Jan Schaumann
http://www.netmeister.org