This is the mail archive of the
mailing list for the Cygwin project.
Re: #!/bin/sh and #!/bin/bash is not the same
- From: Hans-Bernhard Bröker <HBBroeker at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Sat, 20 Aug 2016 23:50:29 +0200
- Subject: Re: #!/bin/sh and #!/bin/bash is not the same
- Authentication-results: sourceware.org; auth=none
- References: <CA+7cx1oHkwK8vOV+2heYAhw=DhkrRfEvkbaj2pmH+x29ZP0T7Q@mail.gmail.com>
Am 20.08.2016 um 19:42 schrieb Morten Kjærulff:
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple