Commit ec569127 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(comint-arguments): Treat \" and such as part of one arg.

parent 21323706
......@@ -1126,7 +1126,15 @@ We assume whitespace separates arguments, except within quotes.
Also, a run of one or more of a single character
in `comint-delimiter-argument-list' is a separate argument.
Argument 0 is the command name."
(let ((argpart "[^ \n\t\"'`]+\\|\\(\"[^\"]*\"\\|'[^']*'\\|`[^`]*`\\)")
;; The first line handles ordinary characters and backslash-sequences.
;; The second matches "-quoted strings.
;; The third matches '-quoted strings.
;; The fourth matches `-quoted strings.
;; This seems to fit the syntax of BASH 2.0.
(let ((argpart "[^ \n\t\"'`\\]+\\|\\\\[\"'`\\]+\\|\
(args ()) (pos 0)
(count 0)
beg str value quotes)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment