[ILUG] shebang line curiosity
Kevin O' Riordan
kor at compsoc.com
Mon Dec 2 09:45:04 GMT 2002
> > it, but if anyone can see why this behaviour is occurring, or even how
> > to get the desired behaviour, then I'd be thrilled.
>
> the desired behavior would be what? what are you trying to do?
I was trying to get behaviour like:
#!/bin/sh
/home/kor/bin/somefilter.sh <<EOT
some random text
that will be filtered some
way
EOT
But without using sh as the interpreter, like so:
#!/home/kor/bin/somefilter.sh
some random text
that will be filtered some
way
I thought that would work, but it doesn't - the text gets interpreted by
the interpreter on the shebang line of somefilter.sh, instead of being
interpreted (filtered) by somefilter.sh.
It's just a curiosity, but I can't figure out why it doesn't work.
blarg
-kev
--
Horse sense is the thing a horse has which keeps it from betting
on people.
-W. C. Fields
More information about the ILUG
mailing list