X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: "Krzysztof Duleba" Subject: Re: bash -c error Date: Tue, 10 Jan 2006 15:30:57 +0100 Lines: 14 Message-ID: References: <43C29D64 DOT 6EA16960 AT dessent DOT net> <43C3C018 DOT 8080709 AT byu DOT net> <43C3C316 DOT 40004 AT byu DOT net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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/