Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: David Kramer Subject: Re: pdksh not setting $? with exit status of commands Date: Wed, 19 Jan 2005 19:52:53 +0000 (UTC) Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 68.167.15.123 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3) X-IsSubscribed: yes Dave Korn 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/