On May 2, 2010, at 18:21 , Daniel Fischer wrote:
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.)

Do you perchance know which shells would expand only the first tilde?

Older zsh when MAGIC_EQUAL_SUBST isn't set. zsh 4.x handles "export" and some other builtins automatically, but MAGIC_EQUAL_SUBST is still needed in some cases, such as the occasionally suggested `echo PATH=... >>.profile'.


A way to check this:  type `env PATH'.

Shouldn't that be

It was supposed to be "printenv".  *sigh*


If the result contains a "~",
you need to look at how you're setting PATH to make sure "~" isn't
being quoted.

If the result contains a tilde, you're already hosed because
System.Directory.findExecutable doesn't do tilde-expansion before calling
doesFileExist.

Er, that's the point.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected]
system administrator [openafs,heimdal,too many hats] [email protected]
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to