delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/10/09:15:23

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "Krzysztof Duleba" <krzysan AT skrzynka DOT pl>
Subject: Re: bash -c error
Date: Tue, 10 Jan 2006 15:14:52 +0100
Lines: 25
Message-ID: <dq0fgc$uoa$1@sea.gmane.org>
References: <dpu23k$k1q$1 AT sea DOT gmane DOT org> <43C29D64 DOT 6EA16960 AT dessent DOT net> <43C3C018 DOT 8080709 AT byu DOT net>
Mime-Version: 1.0
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

Eric Blake

> Thanks for the backtrace.  I'll see about rolling a bash 3.0-15 in the
> near future.  In the meantime, avoid invalid uses of time (POSIX states
> that time takes a mandatory argument of the utility name to run; the 
> bash
> extension of letting time take no arguments was the culprit here).

This was just a minimal test case.

$ bash -c time ls
Segmentation fault (core dumped)

However,

$ bash -c 'time ls'
bin       cygwin.bat  etc   lib   sbin  usr
cygdrive  cygwin.ico  home  proc  tmp   var

real    0m0.025s
user    0m0.046s
sys     0m0.000s

Krzysztof Duleba 




--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019