From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Lewis Butler <lbutler@covisp.net>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Apple bash to zsh script problems with error control and bash emulation
Date: Tue, 17 Nov 2020 08:08:15 +0100 [thread overview]
Message-ID: <CAN=4vMr6dGmtvPsVTho9ckJ=VbrneiGrjA4frph6+4V8T2XnqQ@mail.gmail.com> (raw)
In-Reply-To: <F87946E5-2393-4113-BCD2-80F0E79037B4@covisp.net>
On Tue, Nov 17, 2020 at 12:16 AM Lewis Butler <lbutler@covisp.net> wrote:
>
> On 16 Nov 2020, at 13:11, Roman Perepelitsa <roman.perepelitsa@gmail.com> wrote:
> > On Mon, Nov 16, 2020 at 8:46 PM Dominik Reichardt <domiman@gmail.com> wrote:
> >>
> >> So now the script runs as expected again without bash emulation! Wheee!
> >
> > It no longer works with bash though.
>
> Are you using the Apple-supplied bash or bash from home-brew )or similar)?
${=CONF_OPT} is invalid in all versions of bash, so the script doesn't
work in bash regardless of how bash was installed.
Originally Dom had a script that worked on any machine that has bash
installed. Now he has a script that works on any machine that has zsh
installed. Crucially, whether the script works or not doesn't depend
on how (from which shell) you invoke it.
Roman.
next prev parent reply other threads:[~2020-11-17 7:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-16 15:00 Dominik Reichardt
2020-11-16 18:01 ` Daniel Shahaf
2020-11-16 18:10 ` Roman Perepelitsa
2020-11-16 19:45 ` Dominik Reichardt
2020-11-16 20:11 ` Roman Perepelitsa
2020-11-16 23:15 ` Lewis Butler
2020-11-17 7:08 ` Roman Perepelitsa [this message]
2020-11-17 13:03 ` Dominik Reichardt
2020-11-17 15:54 ` Lewis Butler
2020-11-17 16:13 ` Dominik Reichardt
2020-11-17 21:29 ` Roman Perepelitsa
2020-11-17 21:47 ` Bart Schaefer
2020-11-17 22:25 ` Dominik Reichardt
2020-11-18 10:01 ` Roman Perepelitsa
2020-11-19 13:31 ` Lewis Butler
2020-11-19 13:55 ` Dominik Reichardt
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='CAN=4vMr6dGmtvPsVTho9ckJ=VbrneiGrjA4frph6+4V8T2XnqQ@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=lbutler@covisp.net \
--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).