Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2020 14:37:16 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Benjamin Kaduk <bjkfbsd@gmail.com>
Cc:        Warner Losh <imp@freebsd.org>, 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:  <CANCZdfqz-fBdtLxEXRwtQyQe8KwXznnZxFo13ynJ%2B=-LptivPQ@mail.gmail.com>
In-Reply-To: <CAJ5_RoACjVH3EG=FJDsvOc0czRWJxjnPW8saRWn99LSriXEcvg@mail.gmail.com>
References:  <202009011611.081GBN9M025984@repo.freebsd.org> <CAJ5_RoACjVH3EG=FJDsvOc0czRWJxjnPW8saRWn99LSriXEcvg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 1, 2020, 10:18 AM Benjamin Kaduk <bjkfbsd@gmail.com> wrote:

> 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...
>

-c is also in my queue :).

Warner

>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqz-fBdtLxEXRwtQyQe8KwXznnZxFo13ynJ%2B=-LptivPQ>