Thread (14 messages) flat view 14 messages, 4 authors, 2017-08-24

Re: [PATCH v7 3/4] lib/cmdline.c Remove quotes symmetrically.

From: Michal Suchánek <hidden>
Date: 2017-08-21 11:30:09
Also in: lkml

On Mon, 21 Aug 2017 18:27:12 +0800
Baoquan He [off-list ref] wrote:
On 08/17/17 at 10:14pm, Michal Suchanek wrote:
quoted
Remove quotes from argument value only if there is qoute on both
sides.

Signed-off-by: Michal Suchanek <redacted>  
Sounds reasonable. Just for curiosity, do we have chance to pass in
option with a single '"'?
No, we don't. Perhaps it would work if it was at the end of the
commandline.

next_arg checks that quoting is closed.

It was possible but undocumented with previous behavior - you would
place the quote in the middle and the closing quote at start or end so
that next_arg would remove the closing quote but not the one in the
middle.

It would be also possible with shell-like backslash escaping but that
is not implemented.

Thanks

Michal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help