zsh-users
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Toshiro <toshiro@internet.com.uy>
Cc: zsh-users@sunsite.dk
Subject: Re: zsh: no matches found
Date: Mon, 21 Mar 2005 08:45:38 -0800	[thread overview]
Message-ID: <20050321164538.GA15569@blorf.net> (raw)
In-Reply-To: <200503202304.44332.toshiro@internet.com.uy>

On Sun, Mar 20, 2005 at 11:04:44PM -0200, Toshiro wrote:
> Is this the only way? In other shells this is implemented in a very
> simple way, if the wildcard can be expanded, then it is expanded,
> otherwise an asterisk is sent as an argument to the application. 

Yes, other shells do it that way, but that has its downsides.  For
instance, if you run "touch *,c" it's better to get "no match" rather
than creating a useless *,c file.  Or if you type a command like this:
"rsync -avP *.html *.shmtl *.php host:/dest/" (note the misspelling),
it is better to get a "no match" error right away than to get a single
open-error embedded in all the output that you then have to figure out
at the end of the transfer.  I much prefer to simply put single quotes
around any wild-carded file names that should not be expanded rather
than to configure the shell to include a wildcard that didn't match
anything.  YMMV, of course, but if you give it a try, you may find that
you come to prefer it as well.

..wayne..


  parent reply	other threads:[~2005-03-21 16:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-21  0:38 Toshiro
2005-03-21  0:47 ` Dan Nelson
2005-03-21  1:04   ` Toshiro
2005-03-21  1:08     ` Clint Adams
2005-03-21  2:36       ` Toshiro
2005-03-21 16:45     ` Wayne Davison [this message]
2014-04-20 16:12 ugaciaka
2014-04-20 16:18 ` Igor Sosa Mayor
2014-04-20 16:51   ` Sven Joachim
2014-04-20 17:35     ` Igor Sosa Mayor
2014-04-21 19:46       ` John Eikenberry
2014-04-22  6:02         ` lilydjwg
2014-04-22  7:05           ` Bart Schaefer
2014-04-24  4:10             ` lilydjwg
2014-04-22 13:28         ` Igor Sosa Mayor
2014-04-20 16:38 ` Kurtis Rader
2014-04-20 16:47   ` Kurtis Rader
2014-04-21  7:26   ` ugaciaka

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=20050321164538.GA15569@blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=toshiro@internet.com.uy \
    --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).