| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| q=dns; s=default; b=VC58evelorwNbJDfae0qYERYkOBPwtTG4Kdc8w5QMmR | |
| gSEoQruIH/bVrsA16q2AtiqoOeRNksfGPZuNMXz0fcStk94tfcibXZNiIOcWhj2R | |
| t5d0u0hOXvRffe976iwuSSuolx5z1gJVxvQmS1aiJ14du4ehJuGdRW9Gzid9PmT8 | |
| = | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| s=default; bh=XueyrVGxMjM/vaGJu1HNkkUWEKM=; b=hBuPJ9Y2H6xRhrkQB | |
| R9Ci5HEl+Steu5RIvNjjvuZ87a4saoNL452d1Ur1/QuZ/TmS/gE5QreMRE/9Za6V | |
| eZrVhdLL74bcMd6spgC+XxsoB8eN875NByNlF51L+D/tlFuPhd+9DD8ZzhlQeV2u | |
| /3iKTOwTS4SX1N9MhEIRtxgn5w= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
| Authentication-Results: | sourceware.org; auth=none |
| X-Spam-SWARE-Status: | No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
| X-HELO: | etr-usa.com |
| Message-ID: | <52F3F1B8.7030207@etr-usa.com> |
| Date: | Thu, 06 Feb 2014 13:34:00 -0700 |
| From: | Warren Young <warren AT etr-usa DOT com> |
| User-Agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
| MIME-Version: | 1.0 |
| To: | Andrey Repin <cygwin AT cygwin DOT com> |
| Subject: | Re: Newbie Questions |
| References: | <1898639722 DOT 6893470 DOT 1391541591920 DOT JavaMail DOT root AT ptd DOT net> <52F153AE DOT 5080704 AT gmail DOT com> <52F28215 DOT 5030801 AT ptd DOT net> <52F28330 DOT 6060101 AT cygwin DOT com> <52F2AA5D DOT 4000000 AT etr-usa DOT com> <52F2AD84 DOT 1050008 AT etr-usa DOT com> <709102296 DOT 20140206020738 AT mtu-net DOT ru> <52F2D9AF DOT 1060409 AT etr-usa DOT com> <11910654512 DOT 20140206050031 AT mtu-net DOT ru> <52F2E214 DOT 1060403 AT etr-usa DOT com> <2810090853 DOT 20140206121352 AT mtu-net DOT ru> |
| In-Reply-To: | <2810090853.20140206121352@mtu-net.ru> |
| X-IsSubscribed: | yes |
On 2/6/2014 01:13, Andrey Repin wrote:
> Greetings, Warren Young!
>
>>> [C:\home\Daemon]$ bash -c ./foo.sh
>
>> That's not the same command I gave you. -c changes how bash.exe
>> interprets the following parameter.
>
> According to `man bash', that's the correct command to execute scripts with
> bash.
Are you trolling?
$ man bash
SYNOPSIS
bash [options] [file]
...
ARGUMENTS
If arguments remain after option processing, and neither the -c
nor the -s option has been supplied, the first argument is
assumed to be the name of a file containing shell commands.
In other words, bash behaves exactly as I said originally, and Windows
Explorer isn't wrong to call Bash with just the name of a script, when
you tell it that all *.sh open with bash.exe.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |