/bin/sh is not really bash? [was: git stash damaged?]

Marco Atzeri marco.atzeri@gmail.com
Thu Jan 26 15:13:00 GMT 2017


On 26/01/2017 15:20, cyg Simple wrote:
> On 1/26/2017 5:52 AM, Olivier FAURAX wrote:
>> Le 20/01/2017 à 16:20, Brian Inglis a écrit :

>>
>> 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?
>>
>
> No.
>
> $ sh --version
> GNU bash, version 4.3.48(8)-release (x86_64-unknown-cygwin)
>
> You might want to check what your /bin/sh actually is or perhaps just
> remove it and set the symlink yourself.
>

e.g.

$ type sh
sh is hashed (/usr/bin/sh)

$ sh --version
GNU bash, version 4.4.11(2)-release (x86_64-unknown-cygwin)


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



More information about the Cygwin mailing list