Date: Sat, 5 Feb 2011 23:00:24 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r218356 - head/tools/regression/bin/sh/builtins Message-ID: <201102052300.p15N0ONn044367@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Sat Feb 5 23:00:24 2011 New Revision: 218356 URL: http://svn.freebsd.org/changeset/base/218356 Log: sh: Weaken some tests to allow /rescue/sh to pass everything. /rescue/sh has a different _PATH_STDPATH which affects command -p. Modified: head/tools/regression/bin/sh/builtins/command6.0 head/tools/regression/bin/sh/builtins/command6.0.stdout head/tools/regression/bin/sh/builtins/command7.0 Modified: head/tools/regression/bin/sh/builtins/command6.0 ============================================================================== --- head/tools/regression/bin/sh/builtins/command6.0 Sat Feb 5 22:57:14 2011 (r218355) +++ head/tools/regression/bin/sh/builtins/command6.0 Sat Feb 5 23:00:24 2011 (r218356) @@ -1,6 +1,12 @@ # $FreeBSD$ PATH=/var/empty -command -pV ls +case $(command -pV ls) in +*/var/empty/ls*) + echo "Failed: \$(command -pV ls) should not match */var/empty/ls*" ;; +"ls is"*" "/*/ls) ;; +*) + echo "Failed: \$(command -pV ls) match \"ls is\"*\" \"/*/ls" ;; +esac command -pV true command -pV /bin/ls Modified: head/tools/regression/bin/sh/builtins/command6.0.stdout ============================================================================== --- head/tools/regression/bin/sh/builtins/command6.0.stdout Sat Feb 5 22:57:14 2011 (r218355) +++ head/tools/regression/bin/sh/builtins/command6.0.stdout Sat Feb 5 23:00:24 2011 (r218356) @@ -1,4 +1,3 @@ -ls is /bin/ls true is a shell builtin /bin/ls is /bin/ls fun is a shell function Modified: head/tools/regression/bin/sh/builtins/command7.0 ============================================================================== --- head/tools/regression/bin/sh/builtins/command7.0 Sat Feb 5 22:57:14 2011 (r218355) +++ head/tools/regression/bin/sh/builtins/command7.0 Sat Feb 5 23:00:24 2011 (r218356) @@ -24,6 +24,11 @@ check '"$(command -pv ld-elf.so.1; :)" = PATH=/libexec check '"$(command -v ls)" = ""' -check '"$(command -pv ls)" = "/bin/ls"' +case $(command -pv ls) in +/*/ls) ;; +*) + echo "Failed: \$(command -pv ls) match /*/ls" + : $((failures += 1)) ;; +esac exit $((failures > 0))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102052300.p15N0ONn044367>