the proper way to run ksh93 tests is to export SHELL to be
the path of the ksh under test, something like:
KSH=path-to-ksh-under-test
SHELL=$KSH $KSH tests/io.sh
or
SHELL=$KSH $KSH tests/shtests tests/io.sh
running at&t "nmake test" does this
On Sun, 16 Jul 2006 22:43:36 +0200 Roland Mainz wrote:
> Hi!
> ----
> [As originally reported by Mike Kupfer in
> http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2006-July/000520.html]
> The "io.sh" test does not like to be called by a shell which is not
> named "ksh", for example "ksh93". In this case it fails like this:
> -- snip --
> % /usr/bin/ksh93 tests/io.sh
> ./close0[2]: ./close1: cannot execute [Exec format error]
> io.sh[81]: picked up file descriptor zero for opening script
> file
> -- snip --
> Is this a "bug" or a "feature" ?
> ----
> Bye,
> Roland
> --
> __ . . __
> (o.\ \/ /.o) roland.mainz at nrubsig.org
> \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
> /O /==\ O\ TEL +49 641 7950090
> (;O/ \/ \O;)
> _______________________________________________
> ksh93-integration-discuss mailing list
> ksh93-integration-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss