www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <43C3C316.40004@byu.net> |
Date: | Tue, 10 Jan 2006 07:22:14 -0700 |
From: | Eric Blake <ebb9 AT byu DOT net> |
User-Agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
MIME-Version: | 1.0 |
To: | Krzysztof Duleba <krzysan AT skrzynka DOT pl> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: bash -c error |
References: | <dpu23k$k1q$1 AT sea DOT gmane DOT org> <43C29D64 DOT 6EA16960 AT dessent DOT net> <43C3C018 DOT 8080709 AT byu DOT net> <dq0fgc$uoa$1 AT sea DOT gmane DOT org> |
In-Reply-To: | <dq0fgc$uoa$1@sea.gmane.org> |
X-IsSubscribed: | yes |
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 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Krzysztof Duleba on 1/10/2006 7:14 AM: > > This was just a minimal test case. > > $ bash -c time ls > Segmentation fault (core dumped) That is equivalent to 'bash -c time', except that $0 is set to "ls" instead of "bash" or "time" for the duration of the command (in other words, the same crash as before, because you invoked time without arguments). > > However, > > $ bash -c 'time ls' Much better - now you are actually giving time an argument. Again, in bash 3.0, you should not use time without a valid argument (at least, not until I can roll a bash 3.0-15 that works around the coredump). Or you could upgrade to bash 3.1 (but remember to also use a current snapshot and readline 5.1), where the problem has been fixed upstream. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net volunteer cygwin bash maintainer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDw8MV84KuGfSFAYARAsT0AJ4/2ki/bWHT+4Xz/yrnR+EgCblscACePHCv +HJDq7jpwWMIij08jc8P0uc= =8vRL -----END PGP SIGNATURE----- -- 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 |