From owner-svn-src-all@freebsd.org Tue Sep 1 20:37:31 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9753E3D76AB for ; Tue, 1 Sep 2020 20:37:31 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BgzQf0X78z4CyW for ; Tue, 1 Sep 2020 20:37:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x834.google.com with SMTP id d27so1993613qtg.4 for ; Tue, 01 Sep 2020 13:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5gGikeCzqYISDQ2l7bjkL9TSGBGgBbGLqc3yC31Ze2c=; b=gNQJq+1/wFlITcb4KAR7AArx0dFIcQ+cHZ2cg5FNbydKaRvrI/lZDOFnGkucMQ0yNN l4jgEBWErWA/AgYBTxn8DIUGAFqGfaTzK3YEiNozy5P/XvGJtgB1gFRFuBHuPUqstX9q A3s5oMNBke0gHp1BamuzrMrM6B/LWTEx3K4AtmNNrpHEAdtutqdje2vXOak6aEIoVdML o+GOegNZ25BdorxdOlJfU8lFxlHk9R+lWputmlAsDuAIcQFIS2UnLcvctgkmy9MaaC4M hgjHMMW5eshyTCYok5LKmuHCLtyAdWTwPtLBumQu00dhipsUJYFJJZvryVWhPsglK2cQ 9iqQ== 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=5gGikeCzqYISDQ2l7bjkL9TSGBGgBbGLqc3yC31Ze2c=; b=aHZuKWdhL/vLl96QUnQuoekol9z8K4RSZ6sCAopqUhxzqrzv30pVhpZCN/UEnTcjCe QKqlILQkQZSyWqfrK22ICUf4hCbhA9vizofH8LkXPGcHShWgHDLZFTMN4aqUmqX+nKyr zwKiYeIbobpcq3o9SwnjJjvWscR4XMVcS7RxSbF6tVLFHyFXgl4eTt1RhsjvQ1jxH84q SVCrAN9uaqxue0MYWNX9S+zHulGTe4q4GuIMaS0c1l1cbtwxL3BWDO/FF8vZTprsSYog c4tFdUiIeRoZwJDDyaTtfLP1nqDEM528bCOYrRhTXX61I1aLPc+yr4YenD9EZ96xn0m9 /eoQ== X-Gm-Message-State: AOAM532cfgbNp5S3e2NB2z2GVtvpGcVynxUXHTamcK7ZHDtoS2VbOEie eaN5BuZF5aerCxdUxQOPBGuf4dLgmEosEyETtFVh8w== X-Google-Smtp-Source: ABdhPJzc/15w/61prHm1DyBS1zTwB6LzrvlEZ9X8KSBkc8jdfXkbN62cQpdVWITdkbcl7OwPE0cNGaOefwZ0VqUFwg4= X-Received: by 2002:ac8:4548:: with SMTP id z8mr3688143qtn.291.1598992648691; Tue, 01 Sep 2020 13:37:28 -0700 (PDT) MIME-Version: 1.0 References: <202009011611.081GBN9M025984@repo.freebsd.org> In-Reply-To: From: Warner Losh Date: Tue, 1 Sep 2020 14:37:16 -0600 Message-ID: Subject: Re: svn commit: r365052 - head/usr.bin/script To: Benjamin Kaduk Cc: Warner Losh , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org X-Rspamd-Queue-Id: 4BgzQf0X78z4CyW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=gNQJq+1/; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::834) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-1.93 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.10)[0.103]; NEURAL_HAM_LONG(-1.06)[-1.057]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[svn-src-all@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::834:from]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; MAILMAN_DEST(0.00)[svn-src-all] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 20:37:31 -0000 On Tue, Sep 1, 2020, 10:18 AM Benjamin Kaduk wrote: > On Tue, Sep 1, 2020 at 9:11 AM Warner Losh wrote: > >> Author: imp >> Date: Tue Sep 1 16:11:23 2020 >> New Revision: 365052 >> URL: https://svnweb.freebsd.org/changeset/base/365052 >> >> Log: >> Have script accept and ignore -e for Linux compat >> >> In the util-linux version of script, it will always exit with succes. >> Except when run with -e, in which case it will have the exit value of >> the child. BSD Script already uses the child's exit value for its exit >> value. Some config and other helper scripts depend on being able to >> specify -e. Accept it for compatibility since we'll already to the >> right thing, but otherwise we ignore it. >> >> > What kind of usage is not currently portable but becomes portable as a > result > of this change? I thought the BSD and GNU syntax was inherently pretty > different, > e.g., with '-c' for the command to run vs. implicit positional arguments, > and would > love to be able to retrain myself to something that works everywhere... > -c is also in my queue :). Warner >