Date: Tue, 1 Sep 2020 09:18:12 -0700 From: Benjamin Kaduk <bjkfbsd@gmail.com> To: Warner Losh <imp@freebsd.org> Cc: src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r365052 - head/usr.bin/script Message-ID: <CAJ5_RoACjVH3EG=FJDsvOc0czRWJxjnPW8saRWn99LSriXEcvg@mail.gmail.com> In-Reply-To: <202009011611.081GBN9M025984@repo.freebsd.org> References: <202009011611.081GBN9M025984@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 1, 2020 at 9:11 AM Warner Losh <imp@freebsd.org> 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... -Ben
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5_RoACjVH3EG=FJDsvOc0czRWJxjnPW8saRWn99LSriXEcvg>