mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-18 09:28:02 +02:00
unposted: fix silly bug wherein ${(!)ref} uppercased the referent name
This commit is contained in:
parent
ead0dd6b76
commit
25399e5437
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2025-05-14 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted: Src/params.c: fix silly bug with overloading of PM_UPPER,
|
||||
to wit, ${(!)ref} would print the referent name in upper case
|
||||
|
||||
2025-05-14 dana@dana.is <dana@dana.is>
|
||||
|
||||
* github #133: Christopher Bock: Completion/Zsh/Command/_which:
|
||||
|
|
|
@ -2482,7 +2482,8 @@ getstrvalue(Value v)
|
|||
s = casemodify(s, CASMOD_LOWER);
|
||||
break;
|
||||
case PM_UPPER:
|
||||
s = casemodify(s, CASMOD_UPPER);
|
||||
if (!(v->pm->node.flags & PM_NAMEREF))
|
||||
s = casemodify(s, CASMOD_UPPER);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue