zsh-users
 help / color / mirror / code / Atom feed
From: Meino Christian Cramer <Meino.Cramer@gmx.de>
To: phil@fifi.org
Cc: zsh-users@sunsite.dk
Subject: Re: Command != command ???
Date: Mon, 25 Jul 2005 05:45:14 +0200 (CEST)	[thread overview]
Message-ID: <20050725.054514.63127481.Meino.Cramer@gmx.de> (raw)
In-Reply-To: <87sly3mug9.fsf@ceramic.fifi.org>

From: Philippe Troin <phil@fifi.org>
Subject: Re: Command != command ???
Date: 24 Jul 2005 20:32:38 -0700

> Meino Christian Cramer <Meino.Cramer@gmx.de> writes:
> 
> > > You setopt extendglob in your zshrc, which is not sourced for your script.
> > > 
> > > Either move the setopt to zshenv, or add setopt extendedglob to your
> > > script.
> > > 
> > > Phil.
> > 
> > Thank you for you reply.
> > 
> > I have set extendedglob in my .zshrc...is that not sufficient ?
> 
> .zshrc is only sourced for interactive shell.  A script is considered
> non-interactive.  .zshenv is *always* loaded (except if your admin
> unsetopt's RCS in /etc/zshenv, but that would be idiotic).  Yet,
> that's not the answer to your problems.
> 
> No, Bart's right in <1050724232221.ZM26877@candle.brasslantern.com>.
> Extended_glob is not necessary for **.
> 
> Yet, the manual states (FILENAME GENERATION > Recursive Globbing):
> 
>        As a shorthand, `**/' is equivalent to `(*/)#'; note  that
>        this  therefore  matches files in the current directory as
>        well as subdirectories.
> 
> And earlier on (FILENAME GENERATION > Glob Operators):
> 
>        x#     (Requires EXTENDED_GLOB to be set.)   Matches  zero
>               or  more occurrences of the pattern x. 
> 
> Should we fix the manual?
> 
> Phil.
> 

I am a little confused here -- seems that what I believed to know
previously is wrong...

...I am booting my linux box directly into an X-Server with a kdm
login...The shell I start then is...interactively, right? .zshrc
setopts my extendedglob...then I start a script from there...which
again is not interactively...and will "loose" some features I set in
my .zshrc...

Is this correct?

Is there a list where I can identify those features, which are not
valid for scripts, if set in .zshrc? Or do I have to read through the
whole zshall manpage?

Meino


  reply	other threads:[~2005-07-25  3:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-24  5:42 Meino Christian Cramer
2005-07-24 22:12 ` Philippe Troin
2005-07-24 23:22   ` Bart Schaefer
2005-07-25  3:06   ` Meino Christian Cramer
2005-07-25  3:32     ` Philippe Troin
2005-07-25  3:45       ` Meino Christian Cramer [this message]
2005-07-25  4:14         ` Philippe Troin
2005-07-25 16:06           ` Meino Christian Cramer
2005-07-25  3:54       ` Bart Schaefer
2005-07-25  4:15         ` Philippe Troin
2005-07-25 18:00   ` Meino Christian Cramer
2005-07-25 18:24     ` Philippe Troin
2005-07-25 18:53       ` Meino Christian Cramer
2005-07-25 19:20         ` Philippe Troin
2005-07-25 19:35           ` Meino Christian Cramer
2005-07-25 22:37             ` Philippe Troin
2005-07-26  0:33               ` Meino Christian Cramer
2005-07-26  2:21                 ` Philippe Troin
2005-07-26  4:20                 ` Sami Samhuri
2005-07-27 18:25                   ` Meino Christian Cramer
2005-07-26  5:07                 ` Bart Schaefer
2005-07-27  2:50                   ` Meino Christian Cramer
2005-07-26 10:28                 ` Peter Stephenson

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=20050725.054514.63127481.Meino.Cramer@gmx.de \
    --to=meino.cramer@gmx.de \
    --cc=phil@fifi.org \
    --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).