[GHC] #13287: The runtime parses arguments past -- under windows but passes them on as arguments on linux

GHC ghc-devs at haskell.org
Thu Feb 16 15:13:44 UTC 2017


#13287: The runtime parses arguments past -- under windows but passes them on as
arguments on linux
-------------------------------------+-------------------------------------
           Reporter:  AndreasK       |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Runtime        |           Version:  8.0.2
  System                             |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Other
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Starting a executable like this:

     app -- arg1 +RTS -s -RTS arg2

 Windows and Linux pass different arguments on to the application:

 * Windows: `["--","arg1","arg2"]`
 * Linux: `["--","arg1","+RTS","-s","-RTS","arg2"]`

 If we want uniform behavior we need to change one of these.

 Given the existence of the --RTS flag I'm not sure if the Linux behavior
 was intended
 however it matches the behavior you would expect in the *nix world nicely.
 Therefore changing the behavior on Windows would make more sense.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13287>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list