delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/18/04:47:35

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <CALX7UOjn=SybxSTx_fPEtyBZPAytV955Qga49Hd9k3ZbaoU8yg@mail.gmail.com>
References: <CALX7UOjv6Lgiu+P2wF-cG2=EcxE4o8WFt9d4HzLndC2_QmgvMw AT mail DOT gmail DOT com> <641947393 DOT 20120117170156 AT mtu-net DOT ru> <CALX7UOjn=SybxSTx_fPEtyBZPAytV955Qga49Hd9k3ZbaoU8yg AT mail DOT gmail DOT com>
Date: Wed, 18 Jan 2012 10:47:12 +0100
Message-ID: <CAEhDDbBLy0zyS+ARtMpSpx0BQ6Vv8c2yHtwLspTxcBKHEvvgJA@mail.gmail.com>
Subject: Re: Don't want executive attribute
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com, panruochen AT gmail DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Hi,

On Wed, Jan 18, 2012 at 4:46 AM, Pan ruochen wrote:
>
> Actually I don't have any problem about this.
> I just want cygwin more colorful as most of *NIX terminals do, i.e.
> red for tar/zip files, green for executables.
> And I notice that if I touch a new file on cygiwn, the new-created
> file has no executable attribute.
> Based on that, I wonder whether I can change the default attributes
> for files which have existed before cygwin is installed.

If you create a file using Cygwin programs (e.g. touch), usually it
won't have the executable bit (unless it's the linker or some other
program which is meant to create executables.
However, files created by (non-Cygwin) Windows programs appear as
executable to Cygwin (run ls -l on /cygdrive/c/Users/*/Documents and
you'll see all files with the x bit).

Hope this helps,
Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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