This is the mail archive of the
cygwin
mailing list for the Cygwin project.
/bin/sh is not really bash? [was: git stash damaged?]
- From: Olivier FAURAX <olivier dot faurax at anyces dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 26 Jan 2017 11:52:27 +0100
- Subject: /bin/sh is not really bash? [was: git stash damaged?]
- Authentication-results: sourceware.org; auth=none
- References: <79a57b23-6050-e3d6-3cc9-776eade485af@SystematicSw.ab.ca>
Le 20/01/2017 à 16:20, Brian Inglis a écrit :
Looks similar to mine except my group owner is Administrators.
Only thing I can suggest is run admin/elevated bash then
chgrp Administrators /usr/libexec/git-core/*
using local language for Administrators and retest if that makes
any difference?
I found a workaround by replacing:
#!/bin/sh
by:
#!/bin/bash
in the first line of /usr/libexec/git-core/git-submodule
This might be related to:
https://cygwin.com/faq/faq.html#faq.using.shell-scripts
However, I didn't change any permission when "bash" worked instead of "sh".
Also, the previous link says that "/bin/sh is really bash", but:
$ /bin/sh --version
$ /bin/bash --version
GNU bash, version 4.3.48(8)-release (x86_64-unknown-cygwin)
Is this expected?
Thanks for the help,
Olivier
--
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