From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2871 invoked from network); 17 Nov 2020 15:54:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Nov 2020 15:54:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605628479; b=glm1YhaRyXS7TBYKLmcMu3QGO8CHXiHNmuKDtWM0vzmnfCj8gOwhagXVd/HIhRH1hS8mOS2QOn zRNiSXPVCf1P/la6/egsXIap5GyiHPLOkU5GXRe2V1viq5aFJgQMCQn6Kiz+fnJmM2D5bmzj6g zbFUHWW6Sv+FGNE5X9riGgEui3FkoZj6clKqYTQJdaOBqVosKHQvzvvuS70BSsUl3xPzZ/HEoQ J2e7+zkNb+Vx7uCAXVnbTkccKQCOlSu4TWpCoyifHQVhdveMmtJqQ4X281plt1WvmTAP5LiYae tNvtO5wQCQVEKiwStUv0IaOB773ZcuiA3JmmuFDI70kGhQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail.covisp.net) smtp.remote-ip=65.121.55.42; dmarc=none header.from=covisp.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1605628479; bh=oMHKF/qhVoKw1Atvj5/sUIJ80HItTinBUIS12+eP8fM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Date: In-Reply-To:From:Subject:Content-Type:DKIM-Signature; b=TyW3Xg0DRGSOE+b4mjiLKrAam+e8/zg1yrhye5iYYyx1KFAnwWz/27OoZfj5Z6YhmmKfFWup0C x0z1GPL9bfUWiKskho4ZKix1NkNj9XjuYSnjKcDwHPziLI0shLjqbM2pQ8GPD2X7Zl9Dm49j82 ll7WpQjFkjdfoYBkLX4LGn+ZqgLpXSiFFHwMZVoIHoIS0jKo4F3Vr4x+H1B/qJ2WXNpsE7iyWu DNlZUQvdV7IWuf2ZDPXiGCMiczBP65NaImeQQ1y/VMUyMRfD6C1b8YfyEntDY65lX8uaTgCMaP rjhiGsS00/7cUFLE0ayM9Bs9aWYxK6vd7L7sgDdBDGQOZw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:References:Message-Id: Content-Transfer-Encoding:Date:In-Reply-To:From:Subject:Content-Type:Reply-To :Cc:MIME-Version:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=oMHKF/qhVoKw1Atvj5/sUIJ80HItTinBUIS12+eP8fM=; b=e58BOj4X3q9PgUsAdDko1yPLp6 lP9NRvOJJ4/0VlOj/K5y5Gzjs+7eE52J23Dj7MatRKQbD/xUQSOZ0aYZWcLtrlLxsfc4StQ2FAfVu 7EOp9rR7+DHD2nYCati9zyG/AMfw/5vJZDYPcWrYHW/hXd0ISKaKNFSUMfIgjKUt5QQ/XTxrvflag /x5WwZhp0fHCQv7/PTcDJg4sDEZPAPDDgT5/JfqhwlmnEQCh4rrlQeAo33OMo+Couu31/jnZ9TfDc aPf0HPfcIykumTKdV9f9sDva2Zq6PRzvki1Ernqvx6ft7k+xGGTCtd3GAEvhEW7rEFCrNQJ7XjZEh eCdvpejA==; Received: from authenticated user by zero.zsh.org with local id 1kf3JV-000PNl-JU; Tue, 17 Nov 2020 15:54:37 +0000 Authentication-Results: zsh.org; iprev=pass (mail.covisp.net) smtp.remote-ip=65.121.55.42; dmarc=none header.from=covisp.net; arc=none Received: from mail.covisp.net ([65.121.55.42]:35702) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kf3Iz-000P1Z-Ug; Tue, 17 Nov 2020 15:54:06 +0000 Content-Type: text/plain; charset=utf-8 Subject: Re: Apple bash to zsh script problems with error control and bash emulation From: Lewis Butler In-Reply-To: <5F28C80F-1AAB-4DBB-8B65-6544F66C3CED@gmail.com> Date: Tue, 17 Nov 2020 08:54:03 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <400E3641-0265-4DBC-98A3-D9E4A1E41164@covisp.net> References: <1EFC2452-32D1-411C-B239-0031131FA197@gmail.com> <20201116180129.4f6a851f@tarpaulin.shahaf.local2> <4254F6E5-249B-4DFF-8D4D-6D253D15AFB2@gmail.com> <5F28C80F-1AAB-4DBB-8B65-6544F66C3CED@gmail.com> To: Zsh Users X-Mailer: Apple Mail (2.3654.20.0.2.21) X-Seq: 26181 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On 17 Nov 2020, at 06:03, Dominik Reichardt wrote: > On 16. Nov 2020, at 21:11, Roman Perepelitsa = wrote: >> On Mon, Nov 16, 2020 at 8:46 PM Dominik Reichardt = wrote: >>> So now the script runs as expected again without bash emulation! = Wheee! >> It no longer works with bash though. > I=E2=80=99m good with that. I needed the script to work on my machines = that are now all switched to zsh shell. This statement seems to me to have a underlying assumption that is = entirely wrong. Bash did not go away and bash will not go away. The shell you use = interactively has nothing to do with the shell a script invokes. There is no reason to change a working script from bash to zsh just = because the interactive shell you use has changed. There may be other reasons to change a script for new features or better = behavior (For example, I converted many sh scripts to bash because of = these types of issues, but I also still have plenty of sh scripts as = well). --=20 =C9=B9=D7=9F=CA=87nq=D7=9F tel:+1.303.219.0564