public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: David T-G <davidtg-bug-fileutils@justpickone.org>
To: FileUtils bugs <bug-fileutils@gnu.org>
Cc: Andrei Cernea <acernea@cedara.com>,
	CygWin Users' List <cygwin@cygwin.com>
Subject: Re: chmod
Date: Wed, 16 Oct 2002 03:08:00 -0000	[thread overview]
Message-ID: <20021016093124.GH84133@justpickone.org> (raw)
In-Reply-To: <880E371DA312D6119BFD00B0D02090C4496CA1@dinobot>

[-- Attachment #1: Type: text/plain, Size: 1959 bytes --]

Andrei --

...and then Andrei Cernea said...
% 
% Hi!
% 
% I am using Cygwin 2.05. I am emailing you because of this:
% 
% ============================================
% > chmod --help
...
% 
% Report bugs to <bug-fileutils@gnu.org>.
% ============================================
% 
% I noticed that in order for a file to have x rights on windows it needs to
% have executable extension. That is, if I have a script file with no
[snip]

Well, yes and no...  If it has a .exe or .com or .bat extension, then
it's considered obvious that it should be executable and so the x bit is
set for you.  As I understand it, if you want to be able to run a shell
script without having to use

  bash /path/to/script

then you'll need to set the x bit.  IIRC there's a way to tell Windows
and the Cygwin DLL to recognize .sh extensions, just like it already
recognizes the other three, and then naming your shell scripts
appropriately will make them executable.  Note that I don't think that
this is the same as typical file extensions, but I could be wrong.  Then
you could tie .pl to perl and who knows what else, too.  Perhaps all
that's necessary to have the system honor the shebang line is the x bit;
it's been a while since I was an active cygwin reader.

The bottom line is that you should direct your question to the cygwin
mailing list, where I've sent a copy of this message (Hi, all! Long time,
no see :-) and to which I've directed followups.  Yes, the reporting
address is the bug-fileutils mailing list, but this isn't a bug but
instead a peculiarity of the cygwin environment.


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org  -- Mary Baker Eddy, "Science and Health"
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

       reply	other threads:[~2002-10-16  9:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <880E371DA312D6119BFD00B0D02090C4496CA1@dinobot>
2002-10-16  3:08 ` David T-G [this message]
2002-10-16  5:03   ` chmod Kris Thielemans
     [not found] <000701c3a8d3$e0917220$a124ff29@fastwebnet.it>
2003-11-12 14:58 ` chmod Igor Pechtchanski
     [not found] ` <Pine.GSO.4.56.0311121045260.9584@eos>
     [not found]   ` <009501c3aa3f$0384c400$a124ff29@fastwebnet.it>
     [not found]     ` <Pine.GSO.4.56.0311131835110.9584@eos>
     [not found]       ` <001201c3ab3b$f6f24ac0$a124ff29@fastwebnet.it>
2003-11-15 17:21         ` chmod Brian Ford
2003-11-15 17:28           ` chmod Christopher Faylor
2002-10-16  5:43 chmod Vince Hoffman
  -- strict thread matches above, loose matches on Subject: below --
2001-12-27 16:00 chmod Sommer, Thorsten
2001-12-26 20:19 chmod Facey Brian
2001-12-26 20:30 ` chmod Christopher Faylor
2001-10-24 10:20 chmod Richard Mansfield
2001-10-24 10:46 ` chmod Larry Hall (RFK Partners, Inc)
2001-04-18  9:24 chmod Simha, Shuba
2001-04-18  9:15 chmod rhenderson
2001-04-18  9:22 ` chmod Larry Hall (RFK Partners, Inc)
2001-04-05  7:41 chmod Simha, Shuba
2001-04-05  8:04 ` chmod Larry Hall (RFK Partners, Inc)
2001-04-05  8:10 ` chmod Corinna Vinschen
2001-03-21  7:07 chmod Antanas Romas
2001-03-21  7:14 ` chmod Michael Erdely
2001-02-28  0:33 chmod Mag. M. Faffelberger
2001-02-28  1:52 ` chmod Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021016093124.GH84133@justpickone.org \
    --to=davidtg-bug-fileutils@justpickone.org \
    --cc=acernea@cedara.com \
    --cc=bug-fileutils@gnu.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).