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.