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 25132 invoked from network); 16 Nov 2020 18:10:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Nov 2020 18:10:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605550243; b=kWm/LFRtSvxjWcAVxU3q94Eu+we8+v/WQWd04ju3miIrM+ktOWu9feUskY1yYJXbuU4uHRiDAz iH9kYr3r/2/zEzVsqKWNPFtAlyUarR/21ar9++ce/0WUzY6yVg6ziq5Bb346Sj6/8+cCsI2wXy IyUbozaDsJT/N6DadKa2rOXpshvCgVs4jXm3caFD4EkYhtebgPrv8aQt+vOaQUTtFhAbn7Gs43 fRJH3uqIVzTcVYI8HJEPbtXLdE0noGFzz6QuobY4ITLktvq2HvPlSMaroGlSCjC9TogYcj/TXp OhoH1j2+bpXuup+6HncFPHztLNpyBB8Rpp6INu97oXAygw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f41.google.com) smtp.remote-ip=209.85.166.41; 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=1605550243; bh=zYnYDD+p4v0WGiD2K+Sm9ClADqrmdn+svGfdRyTst7U=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=rV/OTawRy1Me2nhGMW2CCOccHhhlbd+masEtWeI4rqS94SllXIIS3VYJxYUylj+SBM77uuzbQN /DLnr3AfRFRkrhxJzrZqbPnzBh5Ggfejj9sodJHkxFjbz8NNzfYwrUIysUuNo2qyWMT5OTB0LR PHd59ZhfOtgestznyQiz3uTmZpNjRAbggYrNG8V3796ugsGiCr6LyLzy2J709Dt+gBgoAPvZn3 ZSVWIU39e37wusUDjaChLUDapY6cdvwRFuJKXJRanOLgBpSWrXhjcrjFPON/a3poTc9q3ivFtU 27vopTyj2pw6jtqtrSxApMTFcECOI8Fl4Ss0Pi/1IQUIpw==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zYnYDD+p4v0WGiD2K+Sm9ClADqrmdn+svGfdRyTst7U=; b=fjKfHKjpROBF93GexGz0TM1ODL ulm2+VAH0Ovo970IrI9ddxBOENBXXiPcJWoDzTChcilk5AkVhYbDQekYAO2LF87PllOh7765YiE5R yhGolc3hnbJaw7oW+R4XiVXwgVRixCbQ7ySAv2jqPE9GcKrg2C0jKxE4gSkygXqhJO98pyDLNWPEq UbDrhY2Ff89mYapHRhO351Qb6tb4q2wQrXycjKBJzTPyJE3J+a4yZczhH7UWwtrIbukNhwSqg8p34 g0Im6xGKJ0GowhnGh/YsnrHF469wLeHto5WjleEOChSOKQEzLDWH5a9hUXIYsCf3IXBJSsl1C6/MH wcpuI23g==; Received: from authenticated user by zero.zsh.org with local id 1keixf-000BYZ-KT; Mon, 16 Nov 2020 18:10:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f41.google.com) smtp.remote-ip=209.85.166.41; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f41.google.com ([209.85.166.41]:41622) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1keixG-000BBF-LV; Mon, 16 Nov 2020 18:10:20 +0000 Received: by mail-io1-f41.google.com with SMTP id t8so18331145iov.8 for ; Mon, 16 Nov 2020 10:10:18 -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 :cc; bh=zYnYDD+p4v0WGiD2K+Sm9ClADqrmdn+svGfdRyTst7U=; b=vUvglrH2WokxPyKeqH53y5+S8IH6/VvKQi8unoyuWAMc9n2zaVHVAckjWmg+7P2TgQ PEhOM5Hz7kv/RP4GT5qenS6VAZFgQ8mlC0CDAvB/LfwFZwW8PzSyciTH0SwGoElQNO2F MTdxzA8Qkf5v7HzzenUV5YVhlIhR4Fash9mYvbX+mRu3IKT5s9m3b925ZkuSHf4N4DLw 7Hg4IBeRCXESlX7vhH7WhAOgN1KP58FLWg+mKY5LZzsYhWV7rJP4TPZ61orS+xx/j4R3 tvOv3iH2Jdr8O1A+6X1Fo9PtE5upRRZ28dNoBcHcHJMe2wZQuxOQcCrbJiZzYQOfcmPB 2/UQ== 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:cc; bh=zYnYDD+p4v0WGiD2K+Sm9ClADqrmdn+svGfdRyTst7U=; b=Ene/pgwtQb7Ck71/gOGF48SKxqc4m1S5SSAtx2HdgbNu/fIsvNvcizuqWCvXGAGxmg N1zU/nppWpj6IvREvjB5gbV48Ksnf/B8SzJbFFDwxdCYzIsH9/k6vvpow9uBom6P4icu UO6aQckBTVszIUgfv6PjpnDBjdKvsXlK3zyh8iKpV8XGrK1qNlCBOfQ2xchE4pCwtWmu Wt82+jZq5tB/TN0i2EdgTO76wQBKwJGuw5L/DKdbP1ZNMLFl+ZjDV+y+LcfZ2QR3Hsks X1b6/PPsPzOZFayzqrJITmx+YSmAwjn2WWHWvAynGMZpvPje+8R7WAweRka7BxJM2ulb wZzg== X-Gm-Message-State: AOAM531RAmHq0KzdsM03RvDYFPTLZyEL/JfjqU0YoCDA/gocjoy7G17e 31oJ0Q/FHbFbLauRlI4HnUCAvpKPFnvFmTjBFzs= X-Google-Smtp-Source: ABdhPJxrkWrxXnRRY6cBISb+SnM6wX4poL5VAe9MqtHdm6mpAFQvu1KFZPzwMgU06O5Gt4PJlP9Vpapj1kg4IV57v6A= X-Received: by 2002:a6b:5f05:: with SMTP id t5mr8880090iob.67.1605550217308; Mon, 16 Nov 2020 10:10:17 -0800 (PST) MIME-Version: 1.0 References: <1EFC2452-32D1-411C-B239-0031131FA197@gmail.com> <20201116180129.4f6a851f@tarpaulin.shahaf.local2> In-Reply-To: <20201116180129.4f6a851f@tarpaulin.shahaf.local2> From: Roman Perepelitsa Date: Mon, 16 Nov 2020 19:10:06 +0100 Message-ID: Subject: Re: Apple bash to zsh script problems with error control and bash emulation To: Daniel Shahaf Cc: Dominik Reichardt , Zsh Users Content-Type: multipart/alternative; boundary="0000000000005f2e4305b43d4a67" X-Seq: 26172 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: --0000000000005f2e4305b43d4a67 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Nov 16, 2020 at 7:02 PM Daniel Shahaf wrote: > Dominik Reichardt wrote on Mon, 16 Nov 2020 16:00 +0100: > > I=E2=80=99ve 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 =C2=AB#!/usr/bin/env bash=C2= =BB: > 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. --0000000000005f2e4305b43d4a67 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --0000000000005f2e4305b43d4a67--