delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/01/26/09:21:42

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=vEvDMe4/4kv14gbc
TaQaY8xoJsYh9NI6khDRas33Bdn2sVEbBsBfjMe4OAXJfPVk+D+ANN71g+opb0dw
w45GSkVYt04qRYkxL4DwG7pp/mu7+b3RMNtEmeP6GegWWRbVhJV06WrdAYO6qlAY
y4N63+3uYulEQbtOXQ7jsPUPImM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=tSMKeArjd5OXvfTjJ3VimM
uG/1A=; b=R2cGM53VR6Jx6yqSeuhFiKbJpVPVKE1DHo1lLUqMD/7ZGipGo0FGBQ
Fo7fh6Um0hpRDDtVmKKTlJJnQ2ZGfoHpr0X+0dLYQarklWg7LULq3B7gp1NwjR8s
p3RngfCygis2GpU41Eftsr2IMaTFY9Y7VQOfe/heqoJWYF//HDYKU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=FAURAX, faurax, H*MI:sk:1939fb9, H*i:sk:1939fb9
X-HELO: mail-io0-f176.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ANNw1Ci8xcDxAmBZa/eJ4SIKaEmbvvyW+HlxXpH8qog=; b=OYWHQkXljIsbzgakMQ/pepfMW/kWwevSSwBr/SzkDi7VhELq5QLJckvhoufGKa7LJZ VpV32MLTI6trMd7eEzjcDEEZqvwyB+4v8myekVhtxmgR+YTtN2SeXpnZWiq7ALlVutgH 8YOFvqtr71HBbMk2l/eRNBIQebI+9Ka3wfLmjVqg1UdsicC28Cg98tr8mLPOx17I6Z9E rty2wI08RUDxBIyj3GW46QY27KJ3tc2QRZoOq7UzJZcnnH/dpX6gB327pRjAhgclUMIK Cl4cTDzuH3MdMwDlG05MS+8bq57rxZd0mTgFgjCGHa+DxEa6jrws86k5DbgXdnvXZfeq NJ3w==
X-Gm-Message-State: AIkVDXJMF1fanaWyP3lE0+LoY/RK6Ji/2TOrYJz/zJTTZVbqbbygz78d96y1CaJH3j0DOQ==
X-Received: by 10.107.181.10 with SMTP id e10mr2986762iof.156.1485440473210; Thu, 26 Jan 2017 06:21:13 -0800 (PST)
Subject: Re: /bin/sh is not really bash? [was: git stash damaged?]
To: cygwin AT cygwin DOT com
References: <79a57b23-6050-e3d6-3cc9-776eade485af AT SystematicSw DOT ab DOT ca> <1939fb92-8d67-4861-d7c8-5f5abca68496 AT anyces DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <699a278b-af6e-da03-f087-008b3d8317c0@gmail.com>
Date: Thu, 26 Jan 2017 09:20:59 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <1939fb92-8d67-4861-d7c8-5f5abca68496@anyces.com>
X-IsSubscribed: yes

On 1/26/2017 5:52 AM, Olivier FAURAX wrote:
> 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?
> 

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.

-- 
cyg Simple

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019