#3802: :main in GHCi doesn't do getArgs wildcard expansion
---------------------------------+------------------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 6.12.1 | Keywords:
Os: Windows | Testcase:
Architecture: Unknown/Multiple | Failure: Incorrect result at runtime
---------------------------------+------------------------------------------
In GHCi, from a current directory containing some Haskell files:
{{{
ghci> import System
ghci> let main = print =<< getArgs
ghci> :main *.hs
["*.hs"]
}}}
I would have expected {{{["foo.hs","bar.hs"]}}}. Running the same thing
from the command line (compiled or through runhaskell) gives the expected
behaviour.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3802>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs