Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

subshell commands wrongly return 0

16 views
Skip to first unread message

Laurent Schneider

unread,
Oct 17, 2017, 7:03:19 AM10/17/17
to
Hi

In my current sessions, all my commands return true.

How can I find the root cause?

$ ksh -c false;echo $?
0
$ ksh -c "! true";echo $?
0
$ ksh -c "/foo";echo $?
ksh: /foo: not found
0
$ ksh -c "test 1 = 0";echo $?
0

Thanks
Laurent

Laurent Schneider

unread,
Oct 17, 2017, 7:37:22 AM10/17/17
to
it suddenly stopped bugging... cannot reproduce anymore

0 new messages