Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: script != commandline ???
- X-seq: zsh-users 11345
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: script != commandline ???
- Date: Mon, 26 Mar 2007 21:57:56 -0700
- In-reply-to: <20070327031213.GA6666@solfire>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070327031213.GA6666@solfire>
On Mar 27, 5:12am, meino.cramer@xxxxxx wrote:
}
} How can I make the script act like the commandline ?
The script is not reading your ~/.zshrc et al. files (except for the
~/.zshenv file) because it is not an "interactive" shell.
If you have "setopt" commands that you want to apply to all shells,
move them to ~/.zshenv. In this case it's "setopt GLOB_DOTS".
However, a better idea in this case would be to use
print -l **/*(D)
which turns on GLOB_DOTS just for this one file expansion.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author