sh: Weaken builtins/command4 test to only require a nonzero exit status.
This matches what is in POSIX; various other shells use different exit statuses. Note that it is still required that there be no output.
This commit is contained in:
parent
d448e183aa
commit
83866607fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211973
2
tools/regression/bin/sh/builtins/command4.0
Normal file
2
tools/regression/bin/sh/builtins/command4.0
Normal file
@ -0,0 +1,2 @@
|
||||
# $FreeBSD$
|
||||
! command -v nonexisting
|
@ -1,2 +0,0 @@
|
||||
# $FreeBSD$
|
||||
command -v nonexisting
|
Loading…
Reference in New Issue
Block a user