fixed command abbreviations in GFI

This commit is contained in:
aarne
2008-06-17 12:34:02 +00:00
parent 327d0a6a4a
commit 7c097669d2
3 changed files with 12 additions and 8 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