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

Re: Apple bash to zsh script problems with error control and bash emulation



On Tue, Nov 17, 2020 at 12:16 AM Lewis Butler <lbutler@xxxxxxxxxx> wrote:
>
> On 16 Nov 2020, at 13:11, Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
> > On Mon, Nov 16, 2020 at 8:46 PM Dominik Reichardt <domiman@xxxxxxxxx> 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.




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