diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-28 13:09:30 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-28 13:09:30 +0000 |
commit | 5ce459243f75e0505383340cace0c5838cff5133 (patch) | |
tree | 2eb9a20c6e74ab729c3659bf34390c87dd126a4b /Src | |
parent | 168c83906b8501b4d27915b6bc9687618fb852bf (diff) | |
download | zsh-5ce459243f75e0505383340cace0c5838cff5133.tar.gz zsh-5ce459243f75e0505383340cace0c5838cff5133.tar.xz zsh-5ce459243f75e0505383340cace0c5838cff5133.zip |
zsh-workers/9457
Diffstat (limited to 'Src')
-rw-r--r-- | Src/params.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/params.c b/Src/params.c index 8ff12f0b1..2b7b99790 100644 --- a/Src/params.c +++ b/Src/params.c @@ -376,6 +376,7 @@ scanparamvals(HashNode hn, int flags) char *tmp = dupstring(v.pm->nam); tokenize(tmp); + remnulargs(tmp); if (!(prog = patcompile(tmp, 0, NULL)) || !pattry(prog, scanstr)) return; @@ -966,9 +967,10 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w) if (ishash) { scanprog = pprog; scanstr = s; - if (keymatch) + if (keymatch) { + untokenize(s); v->isarr |= SCANPM_KEYMATCH; - else if (ind) + } else if (ind) v->isarr |= SCANPM_MATCHKEY; else v->isarr |= SCANPM_MATCHVAL; |