base: Add handling of -- to getArgs for Windows
authorAndreas Klebinger <klebinger.andreas@gmx.at>
Thu, 23 Feb 2017 18:46:15 +0000 (13:46 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Feb 2017 22:26:44 +0000 (17:26 -0500)
commit6ca6a360c2b71d7e0c77a819dc463b37efe7a39d
treeb8c5856ce8332b5ddca75f1817dcad7395f0784a
parent7d116e553f0b44723e279ae5affa744e6aefc3c0
base: Add handling of -- to getArgs for Windows

getArgs didn't match the treatmeant of -- in the RTS leading to
inconsistencies between behavior on Windows and other platforms. See #13287.

Reviewers: austin, hvr, bgamari, erikd, simonmar, rwbarton

Reviewed By: bgamari, rwbarton

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3147
libraries/base/System/Environment.hs
rts/RtsFlags.c
testsuite/tests/rts/T13287/T13287.hs [new file with mode: 0644]
testsuite/tests/rts/T13287/T13287.stdout [new file with mode: 0644]
testsuite/tests/rts/T13287/all.T [new file with mode: 0644]