From owner-svn-src-head@freebsd.org Tue Sep 1 20:37:31 2020 Return-Path: Delivered-To: svn-src-head@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 935FF3D74D3 for ; Tue, 1 Sep 2020 20:37:31 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 4BgzQf0bt0z4Chw for ; Tue, 1 Sep 2020 20:37:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82a.google.com with SMTP id 60so1985659qtc.9 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=CSywvmB0f3L0R2uGsLVCxTdDwKePHGNOzBD56rzUbl7Ngl1/5eIzC/KuOJc21gOBye sc1F/1iw1cZ7IAS5jUvnMkkBJUmQQOtSO2pZzk/Ztnf2pFO0UHLvGQT+O0g0gYT+5bfe wuGrKNu/bn/jCvN5Lr8+0jggw+/Vr0GOR9ypay+9lYFcW/irIkKE/LmQviTOWgK0Bnyc ps9N7+EKDKrckm6j2nsOXQKaoFeSG/S89J6yLfpsVmwZVyAWKjz4t22ZkQTY5NEaLP3B dSeZNC7BpBAYgqpcQ8rW4cbqySe/1zuZVOxfTRx8UQnMPaFwa2E4WfQVctxT25k01B4G Ju1Q== X-Gm-Message-State: AOAM530adxrf5KxCkwxaCYqNBkayjbSleJ82e5YBtIUSBCXiu62IY7yy c5tN8xsXX7h7nE2q3M3RpJkL5zovJRnT+6RjU8O4iN3T1bBNhQ== 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: 4BgzQf0bt0z4Chw 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::82a) 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-head@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::82a: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-head] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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 >