[OS X TeX] can't find files in /usr/local/tetex/bin/

Stefan Walsen stefan at walsen.net
Fri Apr 9 02:06:51 CEST 2004


Justin Walker wrote:
> On Apr 8, 2004, at 12:56, Jan Anderssen wrote:
>> - another way to tell which shell you're in: 'echo $SHELL'
> This isn't really reliable; for example, if you log in to tcsh, and run 
> bash, $SHELL will be /bin/tcsh.  I don't know what the effect of running 
> a 'bash' shell script from tcsh would be, for example.

That depends on several things: If the first line is "#!/bin/bash", 
it'll be run by bash and everything will work fine.
If that's not the case, you can also call it by typing
  "bash <scriptname>".

What won't work is if the script does not start with a line similar to 
the one above but is executable and you call it directly, or (regardless 
whether it's executable or not) you call it by typing
"source <scriptname>", because that will result in tcsh's comand 
interpreter being used.

How to get the name of the current shell:
echo $0
should do the trick.

Stefan
-----------------------------------------------------
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.





More information about the macostex-archives mailing list