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 Mon, Nov 16, 2020 at 7:02 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
Dominik Reichardt wrote on Mon, 16 Nov 2020 16:00 +0100:
> I’ve recently moved to zsh as Apple is pressuring us :)

Apple is only encouraging users to change their login shell to zsh. You can still run scripts written in bash, perl, python or what have you.

The easiest solution is to keep the script as «#!/usr/bin/env bash»:

This is solid advice. The chance that Apple will make it impossible to run bash scripts on macOS within the next decade is extremely low. If that happens (it really won't), then you can decide whether to rewrite the scripts or to change the OS.

Roman.


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