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 is not really bash? [was: git stash damaged?]

Am 26.01.2017 um 11:52 schrieb Olivier FAURAX:

I found a workaround by replacing:
in the first line of /usr/libexec/git-core/git-submodule

If that change has any effect, that leaves three main possibilities:

1) something broke or otherwise disabled your installed /bin/sh.exe, but left /bin/bash.exe intact. Someone else here had some unrelated activity kill cygwin's bash.exe recently...

2) the git-stash script wrongly assumes bash behaves exactly the same when called as 'sh' and as 'bash'. But bash enters POSIX compatibility mode in that case, which disables quite a number of GNU extensions.

 This might be related to:

That would be case 2) I don't think so, though. The symptoms of that would be less blunt than "could not execute".

Also, the previous link says that "/bin/sh is really bash", but:
$ /bin/sh --version

That strongly hints you have case 1) happening here.

Problem reports:
Unsubscribe info:

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