zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-users@sunsite.dk
Subject: Re: Zsh fails when Globing fails
Date: Wed, 27 Jul 2005 10:44:53 +0100	[thread overview]
Message-ID: <25390.1122457493@csr.com> (raw)
In-Reply-To: <20050727071943.GA3325@lxlabs.com>

Ligesh wrote:
>  I would like to know how to turn off the strict globbing feature in zsh. In 
> bash, if a globbing fails, the shell will simply pass the full string - metac
> haracters and all - directly to the program. But zsh bails out when globbing 
> fails. So currenlty I have to include all of them in single quotes to make it
>  work.
> 
>  IS there a config option which can get back the bash like behaviour?

You need "setopt nonomatch".  (Not "setopt nullglob": that will remove
the failed matches from the line altogether, which isn't what you want.)

pws


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


  parent reply	other threads:[~2005-07-27  9:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1122445746.19346.ezmlm@sunsite.dk>
2005-07-27  7:19 ` Ligesh
2005-07-27  8:01   ` DervishD
2005-07-27  9:44   ` Peter Stephenson [this message]
2005-07-27  9:47 Ligesh
2005-07-27  9:49 ` Peter Stephenson
2005-07-27 19:56 ` DervishD

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=25390.1122457493@csr.com \
    --to=pws@csr.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).