zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Phil Pennock <phil@athenaeum.demon.co.uk>,
	Zsh Development Workers <zsh-workers@math.gatech.edu>
Subject: PATCH: 3.1.5-pws-4: Re: BUG: array splices
Date: Sun, 3 Jan 1999 12:33:38 -0800	[thread overview]
Message-ID: <990103123338.ZM973@candle.brasslantern.com> (raw)
In-Reply-To: <19981220044847.53415@athenaeum.demon.co.uk>

Catching up on mail that arrived during my winter vacation ...

On Dec 20,  4:48am, Phil Pennock wrote:
} Subject: BUG: array splices
}
} Basically, for any ${arrayname[start,stop]} zsh now seems to ignore the
} comma and everything after it

Some of the associative array code getting in the way of the old behavior.
This should fix it, and should apply to pws-4.

Index: Src/params.c
===================================================================
--- params.c	1998/12/18 16:09:26	1.19
+++ params.c	1999/01/03 20:24:37
@@ -765,7 +765,7 @@
 	} else if (rev) {
 	    v->isarr |= SCANPM_WANTVALS;
 	}
-	if (!down)
+	if (!down && PM_TYPE(v->pm->flags) == PM_HASHED)
 	    v->isarr &= ~SCANPM_MATCHMANY;
 	*inv = ind;
     }

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


      reply	other threads:[~1999-01-03 20:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-20  4:48 Phil Pennock
1999-01-03 20:33 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=990103123338.ZM973@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=phil@athenaeum.demon.co.uk \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).