At 17:25 -0400 5/10/06, Jim Correia wrote:
>On May 10, 2006, at 5:01 PM, Andrew Jaffe wrote:
>
>>The problem seems to be that BBEdit does *NOT* look at $PATH, at  least as 
>>set in my .tcshrc, which indeed gives me the /usr/local/ bin/python 
>>executable from the shell. Instead, it appears to look  in environment.plist 
>>for a PATH variable (even when invoked with  the bbedit command-line utility).
>
>This is why I explicitly pointed that out, and referred you to the QA  page at 
><http://developer.apple.com/qa/qa2001/qa1067.html>.
>
>BBEdit is not a child of any shell, so it doesn't inherit the shell's  
>environment.
>
>BBEdit actually doesn't look in ~/.MacOSX/environment.plist. It just  uses the 
>POSIX APIs to look at the environment. It doesn't care where  the inherited 
>environment comes from - it could have come from a can  of chicken soup for 
>all it cares :-).

Butt BBEdit isn't selling bare chicken bones!

BBEdit worksheets, and the reference to $HOME/.tcshrc above indicates that one 
is in use, do execute your personal .tcshrc file and will honor path 
information that is set there.

Also, Apple includes /etc/tcshrc files with a slightly different name that get 
executed under some login conditions. One of them overwrites any PATH set in 
environment.plist. I found it necessary to edit that out as a superuser so tcsh 
would pick up $PATH from the plist.

On the other hand, if you invoke a perl or shell script from the #! menu you 
get whole new shell that knows nothing about your current environment and 
doesn't even use the shell selected for the worksheet. You can't set an 
environment variable in your worksheet and expect perl to find it. Executing 
perl from a command line in the worksheet is fine but it's hard to pass a 
selection for filtering that way.

There are similar problems - procedures - in AppleScript. Sh, meaning bash with 
limits, is the default regardless of the shell selected in your login 
preferences. If your executable for a "do shell script" starts with #!/bin/tcsh 
you'll get a copy of bash which will instantiate a copy of tcsh for you.

One option is to set up full path aliases in your ~/.tcshrc file and use them.  
Another is Linux.

and while I'm at it, try:

open -a Firefox file://something.html
-- 

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to