zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Obscure [not UTF-8] bug in parameter expansion?
Date: Mon, 05 Sep 2005 21:42:55 +0000	[thread overview]
Message-ID: <1050905214256.ZM9173@candle.brasslantern.com> (raw)
In-Reply-To: <1050905192523.ZM8819@candle.brasslantern.com>

On Sep 5,  7:25pm, Bart Schaefer wrote:
} 
} [...]
} : zargs:233; s=20480 
} : zargs:234; l=ÿ 
} [...]

I've narrowed this down to a test case:

foo() { typeset -a l; echo X${${l##*}[-1]}X }

It looks like some recent change has broken negative indexing on an
empty match result (it happens with a match result on either an array
or a string, but not on a plain empty string).

This is broken in 4.2.5 and 4.2.3 as well, but not in 4.2.0.  I don't
have 4.2.1, 4.2.2 or 4.2.4 handy to test against.


  reply	other threads:[~2005-09-05 21:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-05 19:25 Obscure UTF-8 " Bart Schaefer
2005-09-05 21:42 ` Bart Schaefer [this message]
2005-09-06 10:16   ` Obscure [not UTF-8] " Peter Stephenson
2005-09-06 15:06     ` Bart Schaefer

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=1050905214256.ZM9173@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).