Shell $PATH problems

Kaveh Bazargan kaveh at focalimage.com
Fri Jul 9 03:34:31 EDT 2004


Following earlier suggestions on this list, I am using the "get shell()"
command to send shell commands without going through Terminal.

Here is the problem I have. Please compare my result from Terminal:

===================
[~]: echo $SHELL
/bin/bash
[~]: echo $PATH
/usr/bin/java:/sw/bin:/Users/kaveh/bin:/bin:/usr/X11R6/bin:usr/local/X11/bin:/usr/X11R6/lib:/usr/X11R6/include/X11:/Users/kaveh/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib:.:/Library/teTeX/bin/powerpc-apple-darwin1.3.7:/Users/kaveh/macgs-704-shlib/lib:/usr/local/bin/
[~]:
====================

And here is what I get back in RunRev, using

put shell("echo $SHELL; echo $PATH")

====================
/bin/bash
/usr/bin:/bin:/usr/sbin:/sbin:/Users/kaveh
====================

I am a Unix newbie, so answer may be obvious. Where does the last command
get its path from? Does it not read from the same .bashrc, .bash_profile,
etc?
-- 

--------------
Kaveh Bazargan
http://www.focalimage.com/
http://www.holographer.org/


More information about the use-livecode mailing list