#2007: :main deals poorly with \escape characters
-----------------------------+----------------------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.9
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: Unknown | Os: Unknown
-----------------------------+----------------------------------------------
{{{
C:\Users\NewUser>ghci
GHCi, version 6.9.20071226: http://www.haskell.org/ghc/ :? for help
Loading package base ... linking ... done.
Prelude> :m System
Prelude System> let main = getArgs >>= print
Prelude System> :main foo\bar
["foobar"]
Prelude System> :main foo\nbar
<interactive>:1:5: lexical error in string/character literal at character
'\n'
}}}
Suggested behavour: :main does not look for or interpret escape codes at
all.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2007>
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