zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: Why are Quotes necessay here?
Date: Sat, 31 Jul 2004 02:09:42 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0407310153240.15799@toltec.zanshin.com> (raw)
In-Reply-To: <rjdkg054enl8qmh6ij2krgc3mt6u3jqipn@4ax.com>

On Fri, 30 Jul 2004, zzapper wrote:

> Not necessarily just zsh, and may be I'm being thick today, but why are 
> the double quotes around the $1* necessary here?
> 
> elif builtin cd "$1*" &> /dev/null ;

I'd say they're not necessary and probably wrong, but as you haven't given 
any other context (such as, in what function or script did you find that 
snippet?) it's really not possible to be sure.

It helps if you remember that we're neither psychic nor looking over your
shoulder at your screen ...

> Was the star otherwise being expanded?

It otherwise might be, yes, but only if the value of $1 was a prefix of a
matching file name.

> without quotes I get
> 
>  no matches found: raynin*

That error is printed in that format only when the nomatch option is set, 
which contradicts what you say next.

> I have 
> setopt localoptions nonomatch

You "have" that where?


      reply	other threads:[~2004-07-31  9:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-30 11:56 zzapper
2004-07-31  9:09 ` 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=Pine.LNX.4.61.0407310153240.15799@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).