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; q=dns; s=default; b=ukUE8I ytjN6MXDp5yrX5w429J3WOlR2UZh7ZjrlHMKExs3N6OWDHVQDmUZM/dQcyXv3ILx Hhhk67dRZHzeRVdJgojuiXbotAIP/kStoUFKYeohkbbASAe+u5wQr47gVJd2rDNw 2WFMCA5eqldUKWGg73y92GSr3Ig/Ufe23iUAg= 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; s=default; bh=An3WKEYV/UhJ dVECUf06rLkrcHU=; b=p3G+mQlgbiaZDcdMtu555LfO6HwsUtxV/lupgo3o0/fv jaWxMeLUMAtwFi5snIKFSml87qM3aSdpgJ7rjXK3Psfjkx6c4jEFAr8ol24BgcWB 2o4qVoN1yecziPTPE7mmis5IGkaqVg0m6u5umoONv5ywr0n56ocyUEFbhvIoyec= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Message-ID: <535EC59E.9080602@redhat.com> Date: Mon, 28 Apr 2014 15:18:22 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygwin-bash compat/regression bug... startup line prob References: <535EBD61 DOT 5080109 AT tlinx DOT org> In-Reply-To: <535EBD61.5080109@tlinx.org> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uCejQ2bA3mnBT1cXdnCEvkDu9kUwaTfJU" X-IsSubscribed: yes --uCejQ2bA3mnBT1cXdnCEvkDu9kUwaTfJU Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 04/28/2014 02:43 PM, Linda Walsh wrote: >> cat bin/t.sh > #!/bin/bash -u -x This is an invalid shebang line. Historically, you are allowed at most ONE argument to the program that you will be executing. #!/bin/bash -ux is valid, #!/bin/bash -u -x is not. > If I run it via: >> bash t.sh > Hello World When you run it in this manner, you are NOT using the shebang line, but are instead using the 'bash' found on a PATH search, which explains: >> > ---works--- > Also weird -- the interp line says "/bin/bash" not "/usr/bin/bash" > as the shell, so why does the error come from /usr/bin/bash? the answer to this question. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --uCejQ2bA3mnBT1cXdnCEvkDu9kUwaTfJU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTXsWeAAoJEKeha0olJ0NqRpgH/1ZBSzsVP1Dbn6HbkFyflFPB f7i8NFsv+bEFm47uu5aNfsNUN9algO3wNjee/hWoOMbkB5JRQgJfwaXS657ep5EH lf7xtCVFTN2jbPGHD6w0e1cM061C0tdVDLCoWhV9OkcLSMBfxHr5ABZiU5VXCA4N 2MOrMh83/fXnZf6aNSyb+sBRlGrMFeyeIG5mEPw0qGV1gcQf2Bo/nT8fxcXov1Ib XWkPf41rGssrIVPem7X/vgsF8WW2fBdL6EZBpxYofBBXEdCqT0kBbUTMEAXNdazI ae/4Qt2axMWG2oXQegFGwDdV5BGWXkset1GEChGCNtmi+E36u7X9inKWkyq1i9U= =kSuR -----END PGP SIGNATURE----- --uCejQ2bA3mnBT1cXdnCEvkDu9kUwaTfJU--