X-Recipient: archive-cygwin@delorie.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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=LS+Lsi9eDORMbXJ+
	v6P8h6+DOrLlrvSvBGtNntuCe6BWYhMCu/5i9MljEbgN/8Ehnpc5FudrQkdOG0BT
	9fVgC8PVyIVRvMezhdYOmrDrAxaJSSv7hBr7PmhyGqwpcH5+TmV3kS4WOH5JgKce
	TLG3u55Twu/6Q133foUqSp6jDIk=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=9+Q3HF57tpGlGbskD9YBpD
	WIeBQ=; b=x1t08gD0QEi/0mhNUg/tfhKY0pf5LO5n2ZVRKWba4bEVVv7N+aW123
	tXfF1IhE5y3qUHZAnYHnY4Ig15g4OgZlSnqvwBbceQUEyE6VxqJNqaiNZ3KIA56Q
	sAUaMDVyYXKkpW4PjItkHPYfwjOntDWWmZaQpQ1FTvBxdxFDkqP2s=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=starters, H*f:sk:DhkrRfE, H*f:2heYAhw, H*f:7cx1oHkwK8vOV
X-HELO: mailout11.t-online.de
Subject: Re: #!/bin/sh and #!/bin/bash is not the same
To: cygwin@cygwin.com
References: <CA+7cx1oHkwK8vOV+2heYAhw=DhkrRfEvkbaj2pmH+x29ZP0T7Q@mail.gmail.com>
From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker@t-online.de>
Message-ID: <0bd6a4a3-d2fc-23ab-8027-7eda0fbf87e0@t-online.de>
Date: Sat, 20 Aug 2016 23:50:29 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <CA+7cx1oHkwK8vOV+2heYAhw=DhkrRfEvkbaj2pmH+x29ZP0T7Q@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

Am 20.08.2016 um 19:42 schrieb Morten Kjærulff:
> Hi,
>
> I thought that #!/bin/sh in a script would be a bash, but it seems not
> to be - or what am I doing wrong?

You're asking bash the wrong questions, for starters.  In particular, 
you're mixing up the check whether the shell running that script _is_ 
bash, with whether it _behaves_ like a (full) bash.

To resolve that difference, have a look at

	info bash "Bash Features" "Bash POSIX mode"



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

