the tests are expected to be run via the shtests harness:
$SHELL ../src/cmd/ksh93/tests/shtests ../src/cmd/ksh93/tests/path.sh
shtests tames and normalizes the environment for all tests
-- Glenn Fowler -- AT&T Research, Florham Park NJ --
On Thu, 27 Jul 2006 04:25:31 +0200 Roland Mainz wrote:
> While doing some tests with the ksh93 (ksh93r+_20060724 on Solaris
> 11/Nevada B37) test suite I tried to add /usr/xpg4/bin to ${PATH} in the
> test setup which then caused "path.sh" to fail like this:
> -- snip --
> % (for i in ../src/cmd/ksh93/tests/path.sh ; do echo "## $i " ; env -
> SHELL=$PWD/../arch/sol11.i386/bin/ksh HOME=$HOME
> PATH=/usr/xpg4/bin:/usr/bin:/bin LANG=C LC_ALL=C
> $PWD/../arch/sol11.i386/bin/ksh "$i" ; done)
> ## ../src/cmd/ksh93/tests/path.sh
> ../src/cmd/ksh93/tests/path.sh[145]: mkdir: not found [No such file or
> directory]
> ../src/cmd/ksh93/tests/path.sh[146]: bin/tst: cannot create [No such
> file or directory]
> ../src/cmd/ksh93/tests/path.sh[147]: chmod: not found [No such file or
> directory]
> path.sh[149]: (PATH=$PWD/bin foo) does not find $PWD/bin/foo
> -- snip --
> Removing /usr/xpg4/bin from ${PATH} makes the test succeed again as
> normal.
> Is this a bug in the test suite or something else ?