Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: execution in zshrc
- X-seq: zsh-users 23390
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: execution in zshrc
- Date: Fri, 11 May 2018 12:31:34 +0100
- Cc: Paolo Pumilia <paolo.pumilia@xxxxxxxxx>
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180511113143euoutp02b66717e434f7e96ab3cfcee48afea490~tk8B90Wmf1201712017euoutp02M
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1526038303; bh=ev9SjojWCGYZk1GK6NhlGvU9XyinqCuGMnKZxXFN4kI=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=rowITvrkNnbXTcFtMFiLBozofVe6g9Ufq9WFhy/SG0iil4Jajon1iyF6VmS9liPSw jagJJ1IaDb3AffutRsFlF1UkrpE5zdSmlDXCUKg5CHyJerX/qwnWE2KdHbfwexa6Ck 0ogMOapWIH4A0eQqc1piWtFDEW+3HNcPndhqG274=
- In-reply-to: <CABkwP4fWp2mEhzG7wHmxJ7GKy9HR5_uwSb7R0gmdcqjHzvGajQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180511100941epcas3p2a7f5d1bcbf7649f3dd5be354200d3858@epcas3p2.samsung.com> <CABkwP4fWp2mEhzG7wHmxJ7GKy9HR5_uwSb7R0gmdcqjHzvGajQ@mail.gmail.com>
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