Bug #764593 taught me something about tcsh I am not sure I wanted to learn: You can have a shell variable and an environment variable with the same name but different values.

Exercise: What is the result of the two commands

  set PATH; echo $PATH
  unset PATH; echo $PATH

Try to guess, first for tcsh, then for bash.

The result of this is that /sw/bin/init.csh behaves weird when a user has the crazy idea to set the *shell variable* PATH before calling "source /sw/bin/init.csh".

I suggest to put a line

unset PATH

at the beginning of this script to avoid these strange problems.

I suspect that similar problems would appear for MANPATH and CLASSPATH, but who cares about these. :-)

--
Martin






------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to