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

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:30:57 +0100
Lines: 14
Message-ID: <dq0geh$2if$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> <dq0fgc$uoa$1 AT sea DOT gmane DOT org> <43C3C316 DOT 40004 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 wrote

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

Oh, I wasn't aware of that. Thanks for explanation.

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