zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: Re:  Identifier bug
Date: Fri, 18 Dec 1998 11:59:03 +0100 (MET)	[thread overview]
Message-ID: <199812181059.LAA16690@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Fri, 18 Dec 1998 11:24:50 +0100


Peter Stephenson wrote:

> 
> I was just about to put together another development version when I
> discovered this.
> 
> % foo=(a b)
> % foo[1]=c
> zsh: not an identifier: foo[1]

Ok, now I dare to propose this one.

But note that this still has problems if the string inside the `[...]'
contains unmatched opening or closing brackets.

Bye
 Sven

*** os/params.c	Thu Dec 17 15:06:20 1998
--- Src/params.c	Fri Dec 18 11:56:53 1998
***************
*** 661,669 ****
  	return 0;
  
      /* Require balanced [ ] pairs */
!     for (s = ss; *(s += strcspn(++ss, "[]")) && s > ss; ss = s)
! 	;
!     return (*ss == ']' && !ss[1]);
  #endif
  }
  
--- 661,669 ----
  	return 0;
  
      /* Require balanced [ ] pairs */
!     if (skipparens('[', ']', &ss))
! 	return 0;
!     return !*ss;
  #endif
  }
  

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1998-12-18 11:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-18 10:59 Sven Wischnowsky [this message]
1998-12-18 11:02 ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1998-12-18 10:24 Peter Stephenson

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=199812181059.LAA16690@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --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).