[Haskell-cafe] Happy: PATH issue

Ivan Miljenovic ivan.miljenovic at gmail.com
Sun May 2 20:34:51 EDT 2010


On 3 May 2010 10:25, Daniel Fischer <daniel.is.fischer at web.de> wrote:
> It is by my bash:
>
> dafis at linux-mkk1:~/Haskell> export DUMMY=~/bin:~/.cabal
> dafis at linux-mkk1:~/Haskell> echo $DUMMY
> /home/dafis/bin:/home/dafis/.cabal
> dafis at linux-mkk1:~/Haskell> printenv DUMMY
> /home/dafis/bin:/home/dafis/.cabal
> dafis at linux-mkk1:~/Haskell> ghc -e 'System.Environment.getEnv "DUMMY"'
> "/home/dafis/bin:/home/dafis/.cabal"
> dafis at linux-mkk1:~/Haskell> bash --version
> GNU bash, version 3.2.39(1)-release (i586-suse-linux-gnu)
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> Apparently, it's version-dependent (unsurprisingly).
> What's your shell?

This is on my ubuntu box at uni:

ivanm at feitpc02 ~ $export DUMMY="~/bin:~/cabal"
ivanm at feitpc02 ~ $echo $DUMMY
~/bin:~/cabal
ivanm at feitpc02 ~ $printenv DUMMY
~/bin:~/cabal
ivanm at feitpc02 ~ $bash --version
GNU bash, version 3.2.48(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.
ivanm at feitpc02 ~ $

So yeah, looks like it's version-specific.



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


More information about the Haskell-Cafe mailing list