]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Have script accept and ignore -e for Linux compat
authorimp <imp@FreeBSD.org>
Tue, 1 Sep 2020 16:11:23 +0000 (16:11 +0000)
committerimp <imp@FreeBSD.org>
Tue, 1 Sep 2020 16:11:23 +0000 (16:11 +0000)
commit3bb6b78541611ffb9832b67df629ce26678386e7
tree418352d291b3864249b03f0102a0efd5789fb120
parent7d29f0b560a81007606960ead003294a57e73889
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.
usr.bin/script/script.1
usr.bin/script/script.c