Index: cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/tst.basename.d =================================================================== --- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/tst.basename.d +++ cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/tst.basename.d @@ -59,7 +59,7 @@ end = i; i = 0; - printf("#!/usr/bin/ksh\n\n"); + printf("#!/usr/bin/env ksh\n\n"); } tick-1ms Index: cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/tst.basename.d.out =================================================================== --- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/tst.basename.d.out +++ cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/tst.basename.d.out @@ -1,4 +1,4 @@ -#!/usr/bin/ksh +#!/usr/bin/env ksh if [ `basename "/foo/bar/baz"` != "baz" ]; then echo "basename(\"/foo/bar/baz\") is \"baz\"; expected \"`basename "/foo/bar/baz"`"\"