getArgs

Simon Marlow simonmar at microsoft.com
Tue Nov 13 05:51:13 EST 2001


> Using ghc-5.03, getArgs only returns the first command line argument.
> 
> main = do putStrLn version
>            args <- getArgs
>            putStrLn (show args)
>            ...

I can't repeat this bug - it works for me with last night's sources both
in batch mode and in GHCi.

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list