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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15051 invoked from network); 17 Nov 2020 22:26:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Nov 2020 22:26:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605651975; b=SSbXaAmOsTcxik6P5WVnW3yVHZIlRcPgI3bzBGhDm6IEkheNPLdmISNJNDuz0UvDgkILFnE1Wb Aa+IZIm2yVD4Q4sC+oZwcKuWkopkBJ//7qylQ3rqDPAhpS7vUSCMXUhayI3i0ykcF32XZ4PBWh k69tq5SlNASTMwacWfDYFJPWpPVCGqpZFBR1Ez/SaFIhBaPUILlzxT/vI82xlricvW+Y7tLF5p lieGvHkbR0i+NLs/BQcFF5Tj2+kyHWEi5If4Oxzq1TTXTpu4VqftT2dzR/6iBOPNXIPuekS6p5 g/HKNcrmHkNfQPFtPfEYtrkmoNVkzSxXBYqmB2BbUZdveg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1605651975; bh=MavW7TbzHWzJE0aGS11uFA9Pk55cRZ/NlmLLN7pilsc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=lncl/c6wR7R2Lz4e1eYQTm/nrK5F53fTHQBezlVxjXt7KGst90dy9brTTWEj7Et3nK0IgR7TAE eeuz1e9sQWguhztjWyAYbwp+Wa2fb6UoB/RZ8jlEAqpiQKwuocfFakP11JRW14ctv8OSzY2Xd/ /4+ahACHsl5d2lhXReJLtL/cZn8UHOj02JugYb/Bv/Yz8O6A0G2rqJ2+PzIt2DKyqNCVSDtsQb lEY6hygD1ViJTt1nG+lwka1TsXW2PuJpIsogO/YIF43KUqa0UKUoxzbjwFJH7d5o4VQ0PgKBny tJYSzD25VThHWfikk1UWI/nWGiMu3okFizgc4U9B00vy9w==; 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:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=CyROACZzNLq/Th2RhuzasQ7bjG0yy3EZk4pwNcj8miA=; b=kiapcHHBn4uc6zrrANAho8k2bm XN6bbxKUCS4Tb2aINkuocYk9heNbL7sO1KfC0EhnBf15DgbKmxe3CKkcIfnsGKqsmeCjVM5Xwein+ RNFQPCJPB1rAThX4mA8FbotzdDLk3YddjWmjVJ1nj26xAsLx65O5X7DC0knCPl1JGzG4hZRlbQOdv TEEb9jY/ML8cND4Mq4iN981Jm5flOT4Slc0qW2ulchUE6UytAItBh+bxBGFH2Px6S7PtmoqZjZTA8 25fbthmclewcqJEZ7yzxPH4EvwenGLVuoS6J3ZCoyCi3vCQVPKK5R28mSJ4NYr24x0kFS4u6b9XVX EAJ/D4/g==; Received: from authenticated user by zero.zsh.org with local id 1kf9QP-000BAp-Hb; Tue, 17 Nov 2020 22:26:09 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ej1-f51.google.com ([209.85.218.51]:37775) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kf9Px-000AoD-B6; Tue, 17 Nov 2020 22:25:42 +0000 Received: by mail-ej1-f51.google.com with SMTP id f20so31690695ejz.4 for ; Tue, 17 Nov 2020 14:25:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=CyROACZzNLq/Th2RhuzasQ7bjG0yy3EZk4pwNcj8miA=; b=UzzgOT7X0glkpzh3NxdqvX9052MuNTpedCXNVgyNTB6Dr+i2Zsa98SrLvWtrejRlJD krXe0m3orSEncIU41/6FknpvplQbtRGp4k5q7grdRccobts8fj61bBoMbVY6rWcTAX+X 4xgCQewMrITvG0UhfcsS3nLXz0r8ta8g6XaA1N8xkvJXZKQN5aOQjNt03QftP3HYcRgH aADCoy2dYEkBElYrnz/6hzvDos6NqoMXuMk6g55dJSs2YywxxbvILzeCfEw4eJWk+c/a Jp04Cz27rDjvZRNSOPUppMYMMu0/gMYEU60yPQAU0TQy6PtrjGrMSYEiYj8XyM1D4y5R VB4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=CyROACZzNLq/Th2RhuzasQ7bjG0yy3EZk4pwNcj8miA=; b=hN8J+Ru5bU/IRMuuPXRvx3N5TomcaichQcZrz1va2mdaLUfjGslm4aYeYI83mPgCRg yn1jUZm8cEqw1TlQsNbE0QKDasKyCew04E/PIuPFypvrt4i4XaWEj8APcCWMSH3HYJEK 4X0KmdnERHBDFEzQU82c2alqBZGNOgmSAdwczoJDDMJMFaKelVTNUN6RoVVkckfVCd1D 1MowdZqJ2Tg5ihju4cjkbb3uwXJJ5W2V4fxoTG/GuaW6DC9GvHvZbfgh8GjNvg8D3eI9 FrpeRankkoNxX4C1ENMjw531t5Fj+h8PwXtaTusqdYn+y1qCzhQKIajMNdRrOtRlfu7n ohnQ== X-Gm-Message-State: AOAM530rGN8C4NRO7oUe5PkgMxe4JKfIKjN/GyX3mz68cRIu2buoUHHB RElbq5Z0MYTjsd4/sUmyV2QktvCY4O/4EzzJnOLlat07 X-Google-Smtp-Source: ABdhPJxHZR/u9xsSLK8bqxqRIrATR95CFwiVQKFPr8PyzZgzzTKXZLFj4fxprbc+njVy1rxhRCsARqUNK/WPn8h4uSo= X-Received: by 2002:a17:906:ae95:: with SMTP id md21mr20559340ejb.425.1605651940699; Tue, 17 Nov 2020 14:25:40 -0800 (PST) MIME-Version: 1.0 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> <400E3641-0265-4DBC-98A3-D9E4A1E41164@covisp.net> <26ED4B54-363A-4A03-993D-AB447E062E2A@reichardt.de> In-Reply-To: From: Dominik Reichardt Date: Tue, 17 Nov 2020 23:25:29 +0100 Message-ID: Subject: Re: Apple bash to zsh script problems with error control and bash emulation To: Zsh Users Content-Type: multipart/alternative; boundary="0000000000008ef3c705b454f9aa" X-Seq: 26185 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: --0000000000008ef3c705b454f9aa Content-Type: text/plain; charset="UTF-8" Bart Schaefer schrieb am Di. 17. Nov. 2020 um 22:48: > On Tue, Nov 17, 2020, 1:29 PM Roman Perepelitsa < > roman.perepelitsa@gmail.com> wrote: > >> >> My guess is that you've upgraded macOS, which in turn has caused bash to >> downgrade from 5.x to 3.3. >> > > On Catalina bash is actually 3.2.57, it appears. Why on earth ... oh well. > > ksh is at least from 2012, could experiment running the pre-zsh-ized > scripts with that. > Apple can't (or rather won't) use newer bash than 3.2.57 due to licensing woes (GPL3) that's why they want users to switch to zsh and why macOS 10.15+ now use zsh by default for new users. So while I DID upgrade my main machine I doubt that Apple downgraded my bash. I'll have to try with a different machine with an older macOS to verify that on those this all behaves similar > --0000000000008ef3c705b454f9aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Bart Schaefer <schaefer@brasslantern.com> schrieb am Di. 17. Nov. 2020 um 22:48= :
On Tue, Nov 17, 2020, 1:29 PM Roma= n Perepelitsa <roman.perepelitsa@gmail.com> wrote:
=

My guess is= that you've upgraded macOS, which in turn has caused bash to downgrade= from 5.x to 3.3.

On Catalina bash is actually 3.2.57, it appe= ars.=C2=A0 Why on earth ... oh well.

ksh is at least from 2012, could experiment running the pre-zs= h-ized scripts with that.

Apple can't (or rather won't) use newer bash t= han 3.2.57 due to licensing woes (GPL3) that's why they want users to s= witch to zsh and why macOS 10.15+ now use zsh by default for new users.
So while I DID upgrade my main machine I doubt that App= le downgraded my bash.

I= 'll have to try with a different machine with an older macOS to verify = that on those this all behaves similar
--0000000000008ef3c705b454f9aa--