Ticket #2603 (closed bug: fixed)
Crash on Korn shell on Windows XP
Running GHC HEAD in a Korn Shell on Windows XP gives:
[C:/Neil] 21$ ghc ghc: panic! (the 'impossible' happened) (GHC version 6.9.20080916 for i386-unknown-mingw32): can't decompose ghc.exe path: "C:\\ghc\\ghc-6.9.20080916\\bin\\ghc.EXE" Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
The problem is that Korn has resolved ghc as ghc.EXE, which matches ghc.exe because windows is case insensitive when looking up files. This causes an error in SysTools?.lhs. The attached patch fixes this issue. I have not validated.