Ah-reer-reer-reer. I should have come up with some more complicated
commands to test with before I posted that. Well, at least we all know
my script was just a rather flaky hack.
I'm still interested in solving this, though. The big problem here is
that perl slurps up the whole file and compiles it before running
anything, unlike sh which works line-at-a-time. Going from sh to Perl,
we can have a sh syntax error on the second line, but going the other
way doesn't afford us this luxury.
Hrm. My first though is to quote the whole script in a here document
somehow. I'll think about the ramifications of this and post again if
I come up with another gross kludge.
Anyway, for the Perl gurus... why does that : at the beginning of the
line work? Null line label? I discovered it by accident when I was
mucking around with foo ? bar : baz syntax.
 for the record, "echo this is the shell" (newline) "ls". I promise
to go read trip.rc as penance.
Written with 100% free software. Please support the following websites:
www.debian.org www.noamazon.com www.gnu.org www.opendvd.org lpf.ai.mit.edu