From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28632 invoked by alias); 20 Apr 2018 19:00:52 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23358 Received: (qmail 17917 invoked by uid 1010); 20 Apr 2018 19:00:52 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf0-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.215.52):SA:0(-1.9/5.0):. Processed in 2.667286 secs); 20 Apr 2018 19:00:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIMWL_WL_MED,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u4uUZEDuT3OAkJgJXvMTDzlStWyD17dG//GDANNRki8=; b=NuXoukhfnpH4Ci0VBYTBCRxfOm41b3ByKJzSyM0r3QnWGBko1zFwL47sbqbXQnCQ8K Mtd/QOuFKdCDECoBLXVFfuMKKJHoJHdDLO4QtSXuGaKlf5JKdb8FjTYw42zGAk2dQQux 7w1583VBrN/oDV03rQ+p5skll3PurhLxboecbn5iZYvd2BQOR52nKtF/eT5dHOnJ/vff OBeEovfamZzhxmjq+qX/NB6zWWmYhyr97veyL3WqzC8GGZYCfyU170VdZhCLaros11Lz BmeDdIAWqo3JxU4nAZsmgSABShe/pAtB84Fl31Xw1XdxsR+O6Y493UUYx9GGq00PlSGh yXVA== 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=u4uUZEDuT3OAkJgJXvMTDzlStWyD17dG//GDANNRki8=; b=QDaGUTn0V+cNPo8k7RnRvpsaVzR4bHq23UpIVfolkMpzFZlTtKlZBxDT54Qz3ZacbE rvZI8q9BnuS2tZAA/3XN0fe5E7psZN8/+M2usB+gUzNNp29pIU5Qwin+ILGVpsjcOkoe dCYi+z+5UTKr8ilu+V5gCZvirtHgRHUCHBZ1s2fpSaE15BbKDNKnDvj1/AS5ywaHsVj3 Hod6/PSxOlMerMH8/8WGy+3OUBXr//vJp8FbLh7hfkk4prr+ro4amXTu8+gh2kpDx5/8 bMNEdOl7iyxR2yx2m44qAwGmIg9kWidJrNJEno8YvSVFqAz+7D40IE2Ou4e17vg7oeSD cq+g== X-Gm-Message-State: ALQs6tBxzoRH8lNFpauy5hkbIqe6yld7fNu5t592vsn01SiNx71d8MbV 4feZJoWnQbubgZKgbN+GHqAJr6Rp2Iw+xmaxiA6u/Q== X-Google-Smtp-Source: AIpwx48bNzlOzUlR1iIMK0K1P39jccNYWbcKkprp+GZJoJB6w6mmisB1Zf97BH1QUw2rH4eohzcrT69mZsBSyZdzkV4= X-Received: by 10.46.152.83 with SMTP id e19mr8218932ljj.133.1524250845537; Fri, 20 Apr 2018 12:00:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Fri, 20 Apr 2018 19:00:34 +0000 Message-ID: Subject: Re: parse vs. runtime errors To: Ray Andrews Cc: Zsh Users Content-Type: multipart/alternative; boundary="883d24f2195c328a33056a4c4eaf" --883d24f2195c328a33056a4c4eaf Content-Type: text/plain; charset="UTF-8" On Fri, Apr 20, 2018, 11:31 AM Ray Andrews wrote: > How come: > > [ .... ]] > > is only caught as an error at runtime? "[" is a command (synonym for "test") and not a token, and "]]" is only a token when balanced with "[[". The error kills anything > remaining on the same line That would depend on how the remaining commands are separated from this one. Either way, can I ask zsh to always make any error stop everything and > make itself known? That's what "setopt errexit" is for, although that mostly applies to scripts rather than interactive shells. --883d24f2195c328a33056a4c4eaf--