[Haskell-cafe] Happy: PATH issue

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sun May 2 18:28:31 EDT 2010


Daniel Fischer <daniel.is.fischer at web.de> writes:
> Am Sonntag 02 Mai 2010 22:26:43 schrieb Brandon S. Allbery KF8NH:
>> 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.
>
> If the default shell is bash and the PATH is set and exported in ~/.bashrc, 
> it should work with '~' unless the string is quoted, shouldn't it?
> bash expands the tildes when the value is assigned to PATH, I think.
> That would explain why it's a relatively rare breakage.

bash expands it when you use it within bash, but when it's used within
another program this might not be the case (since the PATH is just a
String after all).

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list