mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-14 14:01:18 +02:00
remove quotes when looking at arguments in comparguments (14198)
This commit is contained in:
parent
47d8fd9b6c
commit
ca29f22a86
2 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2001-05-02 Sven Wischnowsky <wischnow@zsh.org>
|
2001-05-02 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
|
* 14198: Src/Zle/computil.c: remove quotes when looking at
|
||||||
|
arguments in comparguments
|
||||||
|
|
||||||
* 14197: Completion/Base/Completer/_expand: missing star in
|
* 14197: Completion/Base/Completer/_expand: missing star in
|
||||||
suffix-style test pattern
|
suffix-style test pattern
|
||||||
|
|
||||||
|
|
|
@ -1317,6 +1317,12 @@ ca_parse_line(Cadef d, int multi, int first)
|
||||||
dopt = NULL;
|
dopt = NULL;
|
||||||
doff = state.singles = arglast = 0;
|
doff = state.singles = arglast = 0;
|
||||||
|
|
||||||
|
/* remove quotes */
|
||||||
|
line = dupstring(line);
|
||||||
|
parse_subst_string(line);
|
||||||
|
remnulargs(line);
|
||||||
|
untokenize(line);
|
||||||
|
|
||||||
if (ca_inactive(d, argxor, cur, 0, NULL) ||
|
if (ca_inactive(d, argxor, cur, 0, NULL) ||
|
||||||
((d->flags & CDF_SEP) && cur != compcurrent && !strcmp(line, "--"))) {
|
((d->flags & CDF_SEP) && cur != compcurrent && !strcmp(line, "--"))) {
|
||||||
if (ca_inactive(d, NULL, cur, 1, NULL))
|
if (ca_inactive(d, NULL, cur, 1, NULL))
|
||||||
|
|
Loading…
Reference in a new issue