From patchwork Thu Mar 29 12:18:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martijn Dekker X-Patchwork-Id: 10315327 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 323986037E for ; Thu, 29 Mar 2018 12:18:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 193562A132 for ; Thu, 29 Mar 2018 12:18:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D93F2A32E; Thu, 29 Mar 2018 12:18:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_TVD_MIME_EPI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1DBD2A132 for ; Thu, 29 Mar 2018 12:18:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750820AbeC2MSv (ORCPT ); Thu, 29 Mar 2018 08:18:51 -0400 Received: from kahlil.inlv.org ([37.59.109.123]:49816 "EHLO kahlil.inlv.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750753AbeC2MSv (ORCPT ); Thu, 29 Mar 2018 08:18:51 -0400 Received: from [192.168.1.81] (host81-159-166-89.range81-159.btcentralplus.com [81.159.166.89]) (authenticated bits=0) by kahlil.inlv.org (8.14.9/8.14.4) with ESMTP id w2TCInej012171 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 29 Mar 2018 14:18:49 +0200 Subject: Re: dash.1 - correct typos, iff -> if To: DASH shell mailing list References: <0928add7-0a5c-8954-c146-efb3d505a545@gigawatt.nl> <20180327184523.GB4343@aiede.svl.corp.google.com> From: Martijn Dekker Message-ID: <2d74576d-1c28-4f93-e76e-a9b204c854c9@inlv.org> Date: Thu, 29 Mar 2018 13:18:49 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB Sender: dash-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Op 27-03-18 om 20:23 schreef Larry Hynes: > Funny, I did wonder if it might be a contraction, but I did find > it odd that it's not mentioned or explained. I'll leave it be, if > you all are happy enough to keep it 'as is', or can resubmit if you > think it's warranted. I think the simple fact that it came up here is evidence that this is too jargony for a manual. Patch attached. - M. diff --git a/src/dash.1 b/src/dash.1 index 1056285..c452c3f 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -606,11 +606,11 @@ and .Dq || are AND-OR list operators. .Dq && -executes the first command, and then executes the second command iff the -exit status of the first command is zero. +executes the first command, and then executes the second command if and only +if the exit status of the first command is zero. .Dq || -is similar, but executes the second command iff the exit status of the first -command is nonzero. +is similar, but executes the second command if and only if the exit status +of the first command is nonzero. .Dq && and .Dq ||