Discussion:
[ast-developers] Problems with (( !b ... )) and bools...
Roland Mainz
2013-07-25 01:42:32 UTC
Permalink
Hi!

----

The following example prints the wrong boolean value with
ast-ksh.2013-07-19 on SuSE 12.3/AMD64/64bit:
-- snip --
$ ./arch/linux.i386-64/bin/ksh -c 'bool b=true ; ((
b=(!b)?(!false):(!true) )) ; printf "%s\n" "$b"'
true
-- snip --

AFAIK it should print "false" ...

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Loading...