zsh-users
 help / color / mirror / code / Atom feed
From: mason@primenet.com.au (Geoff Wing)
To: zsh-users@sunsite.auc.dk
Subject: Re: problem with CSH_NULL_GLOB
Date: 24 Nov 2000 02:06:33 GMT	[thread overview]
Message-ID: <slrn91rj99.qfc.mason@coral.primenet.com.au> (raw)
In-Reply-To: <20001123205324.A5813@khazad-dum>

Maciej Kalisiak <mac@cs.toronto.edu> typed:
:When I "setopt CSH_NULL_GLOB" and do "ls *.cc *.c" in my home directory, it
:lists all the files there (i.e. none of the GLOBs matched anything and they
:have been both removed without error).  I was expecting an error, or at the
:very least nothing to be listed.  Do I misunderstand this option or is there
:something wrong?

It looks like a bug in zsh.  I think you may have NULL_GLOB also set - if
so you will need to unsetopt it until you have a fixed zsh.  You also
didn't say which version - though I can reproduce this with 3.0.8 and a
recent development version.

% mkdir foo
% zsh -f
% setopt CSH_NULL_GLOB
% cd foo
% ls *.cc *.c
zsh: no match
% exit
% zsh -f
% setopt cshnullglob nullglob
% cd foo
% ls *.cc *.c
%

"CSH_NULL_GLOB <C>
	If  a  pattern  for  filename  generation  has   no
	matches, delete the pattern from the argument list;
	do not report an error unless all the patterns in a
	command have no matches.  Overrides NULL_GLOB."

Regards,
-- 
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>


  reply	other threads:[~2000-11-24  2:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-24  1:53 Maciej Kalisiak
2000-11-24  2:06 ` Geoff Wing [this message]
2000-11-24  4:15   ` 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=slrn91rj99.qfc.mason@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=zsh-users@sunsite.auc.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).