]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Return an error status (127) from the builtins 'type' and 'command' (with
authorstefanf <stefanf@FreeBSD.org>
Thu, 11 Jan 2007 00:19:00 +0000 (00:19 +0000)
committerstefanf <stefanf@FreeBSD.org>
Thu, 11 Jan 2007 00:19:00 +0000 (00:19 +0000)
commit69e741477c3292596abfa44f26ac78901c512903
treedecc832cfad798c4d6084f9efbcb074ea29d11c0
parent4385f99f9384fa974e8848520daf243ffc7c27d7
Return an error status (127) from the builtins 'type' and 'command' (with
either -v or -V) if a file with a slash in the name doesn't exist (if there is
no slash we already did that).

Additionally, suppress the error message for command -v for files with a slash.

PR: 107674
Submitted by: Martin Kammerhofer
bin/sh/exec.c