fixed command abbreviations in GFI

This commit is contained in:
aarne
2008-06-17 12:34:02 +00:00
parent b2cb675317
commit 9c30d94c28
4 changed files with 13 additions and 9 deletions

View File

@@ -45,7 +45,11 @@ loop opts gfenv0 = do
cpu' <- getCPUTime
putStrLnFlush (show ((cpu' - cputime gfenv') `div` 1000000000) ++ " msec")
loop opts $ gfenv' {cputime = cpu'}
case words s of
let
pwords = case words s of
w:ws -> getCommandOp w :ws
ws -> ws
case pwords of
-- special commands, requiring source grammar in env
"!":ws -> do
system $ unwords ws