Ticket #339 (closed bug: Fixed)

Opened 8 years ago

Last modified 43 years ago

System.system fails on windows98se, also disables ghci's :!

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: libraries/base Version: 6.4
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

as reported and discussed in the thread 
"win98, ctrl-c & System.system (was: Updated 6.4 
Windows installer RC)"
on glasgow-haskell-bugs.

first messages in thread:

http://www.haskell.org//pipermail/glasgow-haskell-
bugs/2005-March/004856.html

http://www.haskell.org//pipermail/glasgow-haskell-
bugs/2005-March/004857.html

Sigbjorn suggested a fix, getting the command 
interpreter to use from the environment instead of
hardcoding it:

http://www.haskell.org//pipermail/glasgow-haskell-
bugs/2005-March/004862.html

note that on my windows98se system, there is no
command.exe, only command.com:

$ echo $COMSPEC
C:\WINDOWS\COMMAND.COM

which does support the /c switch. Btw, I can't find a way 
to pass this switch through System.Cmd.rawSystem - 
can anyone enlighten me on how to do this?

claus.reinke@talk21.com

Change History

Changed 8 years ago by simonmar

  • status changed from assigned to closed
Logged In: YES 
user_id=48280

I've fixed this, 6.4.1 should be better (though I can't test
it, so I'd appreciate it if you would test a pre-release
when the time comes).

I can use rawSystem to invoke cmd.exe /c here.  eg. this works:

  rawSystem "c:\\windows\\system32\\cmd.exe" ["/c", "dir"]


Note: See TracTickets for help on using tickets.