Sat Sep 16 17:36:41 PDT 2006  [EMAIL PROTECTED]
  * Modify toArgs to parse quotes/escapes like /bin/sh
  Addresses ticket #197, which asks for escape sequences to be supported 
directly (i.e.
  not only in dquoted strings) on :load commands in GHCI.  Fix modifies the 
toArgs
  function to parse its input like /bin/sh does, i.e. recognizing escapes 
anywhere
  and treating quoted strings as atomic chunks.  Thus:
    :load a\ b c\"d e" "f
  would parse with three arguments, namely 'a b', 'c"d', and 'e f'.
  
  toArgs is used to parse arguments for both :load and :main, but doesn't 
appear to
  be used elsewhere.  I see no harm in modifying both to be consistent -- in 
fact,
  the functionality is probably more useful for :main than for :load.

    M ./compiler/utils/Util.lhs -17 +33
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to