zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: zsh-workers@math.gatech.edu (Zsh hacking and development)
Subject: Glob qualifiers bug?
Date: Sun, 15 Dec 1996 23:45:23 +0100 (MET)	[thread overview]
Message-ID: <199612152245.XAA00352@hzoli.ppp.cs.elte.hu> (raw)

The glob pattern *(@-.,/) should match symbolic links to plain files and
directories but instead it matches symbolic links to directories as well.
The problem is that the - toggle has effect over the comma.  The ^ (not)
toggle behaves similarily.  This behaviour might be considered a feature
but the manual suggests that it's not a feature but a bug.  The patch below
fixes this.  It resets these toggles to their default after each comma.
Tell me if you think I do not interpret the manual correctly.

Zoltan


*** Src/glob.c	1996/12/08 02:55:55	3.1.0.2
--- Src/glob.c	1996/12/15 22:33:18
***************
*** 187,192 ****
--- 187,193 ----
  		} else if (*s == ',') {
  		    /* A comma separates alternative sets of qualifiers */
  		    s++;
+ 		    sense = 0;
  		    if (qualct) {
  			qn = (struct qual *)hcalloc(sizeof *qn);
  			qo->or = qn;


                 reply	other threads:[~1996-12-15 22:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=199612152245.XAA00352@hzoli.ppp.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --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).