I ran this script as a Text Filter:

#! /usr/local/bin/perl
print $^X; # ie. the perl interpreter running the script

and got

/opt/local/bin/perl

I then changed my shebang to /usr/bin/perl

and got, wonder of wonders,

/opt/local/bin/perl

Since I am not an opt person, I moved /opt to the trash.

My scripts then would give a Mac OS X error, so I put it back and got the error just the same.

It then occurred to me, for no good reason, to (re-)install the command line tools, and now things behave as I would expect, ie.

$^X ≍ shebang.

I presume this error in my configuration has been there for a long time and I haven't noticed it simply because the routines I use in text filters are generally pretty basic and will run in any interpreter including the 5.8.9 which was in /opt.

Can anyone explain what was happening and why reinstalling the command line tools fixed it?

JD

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to