delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <david AT thekramers DOT net> |
Subject: | Re: pdksh not setting $? with exit status of commands |
Date: | Wed, 19 Jan 2005 19:52:53 +0000 (UTC) |
Lines: | 27 |
Message-ID: | <loom.20050119T204048-711@post.gmane.org> |
References: | <loom DOT 20050119T161314-452 AT post DOT gmane DOT org> <NUTMEGsam5R4r3mbfJ8000012d1 AT NUTMEG DOT CAM DOT ARTIMI DOT COM> |
Mime-Version: | 1.0 |
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 <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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |