[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#1212: 23.0.60; split-string-and-unquote problems

From: Eli Zaretskii
Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems
Date: Tue, 21 Oct 2008 18:05:23 +0200

> From: Stefan Monnier <address@hidden>
> Cc: address@hidden
> Date: Tue, 21 Oct 2008 11:43:25 -0400
> > However, this describes roughly what the code does (which I kinda
> > understood myself by reading it ;-), but does not explain under what
> > circumstances would those functions be useful.  By looking at the uses
> > of split-string-and-unquote, I deduced that the intended use is for
> > taking apart shell command lines.  If that is not the intent, then
> > what is it?
> The intent is for the user to be able to enter in a minibuffer a list of
> strings, where most of them should usually not need any quoting.
> The most common use is to enter a list of arguments to pass to
> a command.  Note that "arguments to pass to a command" (even if the
> first element could be the command itself) is not the same as "shell
> command line", since it does not include operators such as |, &, ;, $,
> and `.

Well, in that case my understanding of the intent of these functions
was quite accurate.  Which also means that split-string-and-unquote
should, indeed, handle quoting with a backslash and ".." quoting in
the middle of a word, as in `foo" "bar'.  Right?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]