diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-10-30 15:34:18 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-10-30 15:34:18 +0000 |
commit | 25833cc89eef879857100d321c2140ff13f63886 (patch) | |
tree | 3a7c1d97cd0d1c01238aaac8b185e9894e31b028 /Src/subst.c | |
parent | 176e0dc8217d97be260bdb8f38e7bd5ddeecdf95 (diff) | |
download | zsh-25833cc89eef879857100d321c2140ff13f63886.tar.gz zsh-25833cc89eef879857100d321c2140ff13f63886.tar.xz zsh-25833cc89eef879857100d321c2140ff13f63886.zip |
25969: two bugs with metafication plus a test for one
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/subst.c b/Src/subst.c index df60a27ab..d76215838 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -2738,8 +2738,8 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) char *tmps; unmetafy(*ap, &len); untokenize(*ap); - tmps = unmetafy(promptexpand(metafy(*ap, len, META_NOALLOC), - 0, NULL, NULL, NULL), &len); + tmps = promptexpand(metafy(*ap, len, META_NOALLOC), + 0, NULL, NULL, NULL); *ap = dupstring(tmps); free(tmps); } @@ -2749,8 +2749,8 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) val = dupstring(val), copied = 1; unmetafy(val, &len); untokenize(val); - tmps = unmetafy(promptexpand(metafy(val, len, META_NOALLOC), - 0, NULL, NULL, NULL), &len); + tmps = promptexpand(metafy(val, len, META_NOALLOC), + 0, NULL, NULL, NULL); val = dupstring(tmps); free(tmps); } |