This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: pdksh not setting $? with exit status of commands
Dave Korn <dave.korn <at> artimi.com> writes:
>
> > -----Original Message-----
> > From: cygwin-owner On Behalf Of David Kramer
> > Sent: 19 January 2005 15:20
>
> > When I execute commands in the pdksh shell that should set an
> > exit value, $? is
> > not being set. When I use the bash shell, it is.
>
> This one already came up very recently. Search the list archives.
>
> cheers,
> DaveK
I *did* STFW first. The closest thread I could find is "negative error status:
gcc vs. cl", which invloves both negative exit values and Windows commands,
neither of which are relevant to my problem. I'm trying to use Cygwin binaries
inside Cygwin's pdksh shell, and expecting 0 or 1.
If you can recall anything else about the thread you mentioned, I would
appreciate it. For what it's worth, the search page will not let me search on
"$?". I tried searching for "ksh exit"
Thanks for your help.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/