This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: #!/bin/sh and #!/bin/bash is not the same


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]