Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: execution in zshrc



On Fri, 11 May 2018 12:07:54 +0200
"Pol  (Admin)" <xtekhne@xxxxxxxxx> wrote:
> Here enclosed, my script from my zshrc file, to select current running
> linux udistribtion.
> At start (e.g. starting a konsole session)  it cannot match any linux
> brand (although 'uname -v' works). therefore exiting with 'unknown
> distribution'.
> Yet, sourcing /etc/zshrc  at terminal prompt, the correct runnig
> linux distibution is found.
> 
> Any  hints  to fix my  script?

That means some option is being set in /etc/zshrc that affects the
running of the code.

It looks like this is probably

setopt extendedglob

If you put that before the code chunk it should work.

pws



Messages sorted by: Reverse Date, Date, Thread, Author