From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12119 invoked by alias); 27 Nov 2015 01:56:15 -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: 21002 Received: (qmail 23035 invoked from network); 27 Nov 2015 01:56:13 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=5BVmBgI8nX6goFQ8RwM2HfFDKt8HHPyx+StKPnmppZI=; b=tpyYthIcgLkd+N0qy1dT+lZsg5/UbxmRDQ/4Vc9TNq8kTRsObnU0yVV3CiKoFD/Mle 5i0ogF9omS4TdyI9LldUtzUMigoncMy5H09fd1kSzUGJccwnbFzwV/YHeRYNaY+TNeKN zFt7uGGtGf8xqyx0EQzn+Y/nEo9EbDXCags7IbozUMFFiI0UaA5Fd0DYTM+gWOiJVZR7 83Uf3WDtkS2TAqkFZka055xEzRxIG3+MKqhz4pfIXSHMMhgukWgX/y2/C+6rEyiuZORl 0EUgcDOTeH1P4+Yqix6PUyIFYG6oFJUJa6O0Lzn4auZHYPwneGjmImKfXhTBDBjEQzNB nxvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=5BVmBgI8nX6goFQ8RwM2HfFDKt8HHPyx+StKPnmppZI=; b=dytfHGYXDScH67AGXWlX6il2B7bKVsVyfufv8lUb0XJOGTDNRbfru5hFRjBKt9tVCW 49l9jZdEw5HT/23MqdIPR/UwMMgnpGvjsM/c/lVsB2zyiQNbgXCB3yOOUZTbiExF5ZDT s/njgqOKVVlUjPV6bzHcfrQiXTWRrP1vVB9c+afRHcnqLOid+KvXg0A4J4IU3TbwnCq+ N8lB6Y4agPdkDPVJZO4SX1nh7locWN7sTuL48VN/Sz8kqGx8nKztiJDuqw6bkTs0ECIo B1OcKMSvCLvzGDsGrJmLTWB531Tn19EY7y7QITa6vlFAvFhDeuYR6dwQZwNNTIN8D520 pK+g== X-Gm-Message-State: ALoCoQl79PYVzG4ca4C0DR4ZeKAy8EJh/TUjRVFpvhKwgtqzG7Ihc/2MoxjnJpwkMjlv8gccRX7t X-Received: by 10.66.63.33 with SMTP id d1mr63768982pas.120.1448589369673; Thu, 26 Nov 2015 17:56:09 -0800 (PST) From: Bart Schaefer Message-Id: <151126175625.ZM22214@torch.brasslantern.com> Date: Thu, 26 Nov 2015 17:56:25 -0800 In-Reply-To: <5657939E.7070106@eastlink.ca> Comments: In reply to Ray Andrews "Re: curiosity with here document." (Nov 26, 3:19pm) References: <56575158.1070303@eastlink.ca> <1330101448564591@web8j.yandex.ru> <5657939E.7070106@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: curiosity with here document. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 26, 3:19pm, Ray Andrews wrote: } } lesson learned. Except it's the wrong lesson! What you *ought* to learn is, first, that for purposes of determining the "truth value" (zero or nonzero return status), if command1; command2; command3; then ... is the same as function three_commands { command1; command2; command3 } if three_commands; then ... And second, that [[ ... ]] is just a command like any other command, it's not magically connected to "if". Further, ":" is also a command like any other command. And third, that a here-document is just the standard input of the command it follows, so : <