delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/13/08:55:05

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=mfGST99XNAwLSD21
edhb/uvxPltMaZb6Go9N26oXJEBmbRVJy7Or97o92CZPnpbqd8/Hxq3u0hvIVapf
RjxHn2e3tsWxFEbwSmy91XxHTgYX6j8F6SXeYCsgw3GgNI8Qs735HLg7km/xUF97
qSFF69HwJ9E0rOeo3gD8QX9Ac3s=
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=I4SEcwIzSCW5tEVQCnZHfC
mcp3I=; b=OP4PTqulu02Y5bUeZa35rfsMEkpMDb6BddUehE/u9PmiLM9Y6nGR7H
8l1P78tlTMVzOVV12431f+OYeuO0ZeyBuO3ELHrQZxZsVIRGsnTI7B2x0tHoct8M
EPAGr3wWvy2nKBYb9kiVPT9ygMh+cejdoHlY19Eg05VA3EyVzH98Y=
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=-3.1 required=5.0 tests=AWL,BAYES_20,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=fischer, Fischer, H*i:sk:1481625, H*f:sk:1481625
X-HELO: limerock03.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: Editors set x-bit (sometimes)
To: cygwin AT cygwin DOT com
References: <1481625566 DOT 176738 DOT 817340945 DOT 718D9CF0 AT webmail DOT messagingengine DOT com>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <7bbc7866-32f9-1c22-c39e-e7cc92e28222@cornell.edu>
Date: Tue, 13 Dec 2016 08:54:35 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <1481625566.176738.817340945.718D9CF0@webmail.messagingengine.com>
X-PMX-Cornell-Gauge: Gauge=XXXXX
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

On 12/13/2016 5:39 AM, Ronald Fischer wrote:
> Does anybody have an explanation for the following strange phenomenon?
>
> When I create Ruby files (*.rb) with an, the files end up with the x-bit
> set with some editors, while this does not happen with some other
> editors. This is annoying, because when I use git to put the file in a
> repository, and the repository is later read on Linux, the incorrect
> x-bit is applied there too. The text editors where this happens, do so
> consistently, as long as the file is below my Ruby HOME directory. It
> does not happen, if I store the file outside my $HOME, say in c:\tmp.
>
> Since a few editors do not show this behaviour, one might blame the way
> the editor creates the file. However, these text editors were not
> written with a Cygwin environment in mind, and Windows doesn't have the
> concept of an "executable bit", and it happens only if I create files
> below my Cygwin Home, so I think this happens when Cygwin tries to
> "infer" the x-bit from some other file properties.

Does this help?

    https://cygwin.com/faq/faq.html#faq.using.same-with-permissions

Ken

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