Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Small problem with typeset -U.
- X-seq: zsh-workers 1622
- From: Andrej Borsenkow <borsenkow.msk@xxxxxx>
- To: Zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: Re: Small problem with typeset -U.
- Date: Fri, 12 Jul 1996 17:07:16 +0400 (MOW)
- In-reply-to: <Pine.SV4.3.94.960712165030.23028C-100000@itsrm1>
- Reply-to: borsenkow.msk@xxxxxx
Sorry, just found, that it was not the best diff format. Once more ;)
-------------------------------------------------------------------------
Andrej Borsenkow Fax: +7 (095) 252 01 05
SNI ITS Moscow Tel: +7 (095) 252 13 88
NERV: borsenkow.msk E-Mail: borsenkow.msk@xxxxxx
-------------------------------------------------------------------------
==========================================================
--- Src/builtin.c.org Thu Jul 4 20:05:16 1996
+++ Src/builtin.c Fri Jul 12 16:38:49 1996
@@ -2799,6 +2799,16 @@
!(pm->flags & PM_READONLY & ~off))
uniqarray((*pm->gets.afn) (pm));
pm->flags = (pm->flags | on) & ~off;
+ if ((pm->flags & PM_SPECIAL) && pm->ename) {
+ Param pme;
+
+ pme = (Param) paramtab->getnode(paramtab, pm->ename);
+ if (pme)
+ if (on & PM_UNIQUE)
+ pme->flags |= PM_UNIQUE;
+ else
+ pme->flags &= ~PM_UNIQUE;
+ };
if (PM_TYPE(pm->flags) != PM_ARRAY) {
if (on & (PM_LEFT | PM_RIGHT_B | PM_RIGHT_Z | PM_INTEGER))
pm->ct = auxlen;
@@ -2868,6 +2878,16 @@
!(pm->flags & PM_READONLY & ~off))
uniqarray((*pm->gets.afn) (pm));
pm->flags = (pm->flags | on) & ~off;
+ if ((pm->flags & PM_SPECIAL) && pm->ename) {
+ Param pme;
+
+ pme = (Param) paramtab->getnode(paramtab, pm->ename);
+ if (pme)
+ if (on & PM_UNIQUE)
+ pme->flags |= PM_UNIQUE;
+ else
+ pme->flags &= ~PM_UNIQUE;
+ };
if (on & (PM_LEFT | PM_RIGHT_B | PM_RIGHT_Z | PM_INTEGER))
pm->ct = auxlen;
if (PM_TYPE(pm->flags) != PM_ARRAY) {
Messages sorted by:
Reverse Date,
Date,
Thread,
Author