| www.delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: bash -c error |
| Date: | Tue, 10 Jan 2006 11:53:48 -0000 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <dpvtj0$2nn$1@sea.gmane.org> |
| Message-ID: | <SERRANOOJXsNQptgFrY00000014@SERRANO.CAM.ARTIMI.COM> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| 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 |
Krzysztof Duleba wrote:
> Christopher Faylor wrote:
>
>>> $ bash -c time
>>> Segmentation fault (core dumped)
>>>
>>> $ uname -a
>>> CYGWIN_NT-5.1 DULI2 1.5.19s(0.141/4/2) 20051020 10:37:08 i686 unknown
>>> unknown Cygwin
>>>
>>> Reproduced on several machines. I wonder what can it be.
>>
>> Just try running 'time' from the bash prompt. You get a SEGV from strlen
>> AFAICT.
>
> No, I don't. But I do get a strange behaviour with
>
> time for ((i=0;i<=100++)) do :; done
It works fine if you fix the bug :)
> Now bash window simply disappears.
Run it in a bash subshell and you'll see:
dk AT espanola ~> time for ((i=0;i<=100++)) do :; done
bash: syntax error: arithmetic expression required
bash: syntax error: `((i=0;i<=100++))'
Segmentation fault
dk AT espanola ~>
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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 |