diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2013-12-02 15:39:20 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2013-12-02 15:39:20 +0100 |
commit | 8f07e7658dcdfecc082ddaaad8e26f460eb02d45 (patch) | |
tree | a16ecc9a433b450827fbd056b06a3260592a8a37 /Src/subst.c | |
parent | df234cd62d04180a54071c7a2a5210d1f16c8b98 (diff) | |
parent | 56aa469d06a60ff23fe0c50ab9d44ae40c150412 (diff) | |
download | zsh-8f07e7658dcdfecc082ddaaad8e26f460eb02d45.tar.gz zsh-8f07e7658dcdfecc082ddaaad8e26f460eb02d45.zip |
Merge branch 'upstream' into debian
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c index a4df2567f..1059508ef 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -2941,6 +2941,14 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags) } } } + if (vunset) { + if (unset(UNSET)) { + *idend = '\0'; + zerr("%s: parameter not set", idbeg); + return NULL; + } + val = dupstring(""); + } } else { /* no ${...=...} or anything, but possible modifiers. */ /* * Handler ${+...}. TODO: strange, why do we handle this only |