From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13706 invoked by alias); 26 Oct 2015 14:49:58 -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: X-Seq: 20830 Received: (qmail 22470 invoked from network); 26 Oct 2015 14:49:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=9465F0r6ijIzKycGN/atqA==:117 a=9465F0r6ijIzKycGN/atqA==:17 a=N659UExz7-8A:10 a=vmImaOT4o1UMbVrYPs0A:9 a=pILNOxqGKmIA:10 Message-id: <562E3D90.2010701@eastlink.ca> Date: Mon, 26 Oct 2015 07:49:52 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: greps pipes and eval bad patterns References: <562D31C3.9030705@eastlink.ca> <151025180235.ZM30558@torch.brasslantern.com> <562D9E85.7080006@eastlink.ca> <1413271445864647@web24g.yandex.ru> <562E2C41.8040907@eastlink.ca> <151026073045.ZM14674@torch.brasslantern.com> In-reply-to: <151026073045.ZM14674@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 10/26/2015 07:30 AM, Bart Schaefer wrote: > On Oct 26, 6:36am, Ray Andrews wrote: > } > } Question: Why can't we have nothing on the right side? > > Because then you have an incomplete command, syntax-wise. You can write > > echo the command starts here | > sed s/start/end/ > > I see, the interpreter would continue on the next line. Yeah, that's a necessary thing without the mandatory ';' as in C. The one exception that I can think of, as we've discussed, is that you can't: echo true && next_command ... which is too bad.