On May 2, 2010, at 05:33 , Limestraël wrote:
Yes, it's weird, but it works! Thanks.
It's normal, actually. "~" is only understood by the shell, so unless the shell is invoked to expand it a program will fail to understand it. Additionally, some shells only expand "~" at the beginning of a "word", so if you `export PATH=~/foo:~/bar' the second "~" won't be expanded. (bash will expand it after a colon, so that should work.) If you quote the string, "~" won't be expanded (`export PATH="~/foo"' won't expand the "~").
A way to check this: type `env PATH'. If the result contains a "~", you need to look at how you're setting PATH to make sure "~" isn't being quoted.
--
electrical and computer engineering, carnegie mellon university KF8NH