From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-users@zsh.org>
Cc: Paolo Pumilia <paolo.pumilia@gmail.com>
Subject: Re: execution in zshrc
Date: Fri, 11 May 2018 12:31:34 +0100 [thread overview]
Message-ID: <20180511123134.4108dacb@camnpupstephen.cam.scsc.local> (raw)
In-Reply-To: <CABkwP4fWp2mEhzG7wHmxJ7GKy9HR5_uwSb7R0gmdcqjHzvGajQ@mail.gmail.com>
On Fri, 11 May 2018 12:07:54 +0200
"Pol (Admin)" <xtekhne@gmail.com> 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
next prev parent reply other threads:[~2018-05-11 11:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180511100941epcas3p2a7f5d1bcbf7649f3dd5be354200d3858@epcas3p2.samsung.com>
2018-05-11 10:07 ` Pol (Admin)
2018-05-11 11:31 ` Peter Stephenson [this message]
2018-05-11 12:30 ` Pol (Admin)
2018-05-11 14:15 ` 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=20180511123134.4108dacb@camnpupstephen.cam.scsc.local \
--to=p.stephenson@samsung.com \
--cc=paolo.pumilia@gmail.com \
--cc=zsh-users@zsh.org \
/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).