Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Limestraël
Yes, it's weird, but it works! Thanks. 2010/5/1 Daniel Fischer daniel.is.fisc...@web.de Am Samstag 01 Mai 2010 13:16:55 schrieb Limestraël: Hello Café, When I was trying to cabal-install haskell-src, I came up with: cabal: The program happy is required but it could not be found

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread 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. Additionally, some shells only expand ~ at the beginning of a

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Daniel Fischer
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.

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Ivan Lazar Miljenovic
Daniel Fischer daniel.is.fisc...@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

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Daniel Fischer
Am Montag 03 Mai 2010 00:28:31 schrieb Ivan Lazar Miljenovic: Daniel Fischer daniel.is.fisc...@web.de writes: 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

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Brandon S. Allbery KF8NH
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

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Daniel Fischer
On Montag 03 Mai 2010 02:12:20, Ivan Miljenovic wrote: On 3 May 2010 08:49, Daniel Fischer daniel.is.fisc...@web.de wrote: Am Montag 03 Mai 2010 00:28:31 schrieb Ivan Lazar Miljenovic: bash expands it when you use it within bash, but when it's used within another program this might not be

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Ivan Miljenovic
On 3 May 2010 10:25, Daniel Fischer daniel.is.fisc...@web.de wrote: It is by my bash: da...@linux-mkk1:~/Haskell export DUMMY=~/bin:~/.cabal da...@linux-mkk1:~/Haskell echo $DUMMY /home/dafis/bin:/home/dafis/.cabal da...@linux-mkk1:~/Haskell printenv DUMMY /home/dafis/bin:/home/dafis/.cabal

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Ivan Miljenovic
On 3 May 2010 10:37, Brandon S. Allbery KF8NH allb...@ece.cmu.edu wrote: On May 2, 2010, at 20:34 , Ivan Miljenovic wrote: iv...@feitpc02 ~ $export DUMMY=~/bin:~/cabal All bets are off when it's quoted; no shell tilde-expands quoted strings. Oh, in that case without the quotes it works (I

Re: [Haskell-cafe] Happy: PATH issue

2010-05-02 Thread Daniel Fischer
On Montag 03 Mai 2010 02:34:51, Ivan Miljenovic wrote: This is on my ubuntu box at uni: iv...@feitpc02 ~ $export DUMMY=~/bin:~/cabal You put quotes around the string, that means tildes aren't expanded ($VARIABLEs still are: da...@linux-mkk1:~/Haskell export

[Haskell-cafe] Happy: PATH issue

2010-05-01 Thread Limestraël
Hello Café, When I was trying to cabal-install haskell-src, I came up with: cabal: The program happy is required but it could not be found However, the happy package was actually installed and the 'happy' executable was in ~/.cabal/bin (which was in my PATH) I had to link ~/.cabal/bin/happy to

Re: [Haskell-cafe] Happy: PATH issue

2010-05-01 Thread Daniel Fischer
Am Samstag 01 Mai 2010 13:16:55 schrieb Limestraël: Hello Café, When I was trying to cabal-install haskell-src, I came up with: cabal: The program happy is required but it could not be found However, the happy package was actually installed and the 'happy' executable was in ~/.cabal/bin