delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/09/01:49:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer goliath.siemens.de)
From: "Andrej Borsenkow" <Andrej DOT Borsenkow AT mow DOT siemens DOT ru>
To: "Michael Schaap" <cygwin AT mscha DOT com>
Cc: <cygwin AT cygwin DOT com>, "ZSH Workers Mailing List" <zsh-workers AT sunsite DOT dk>
Subject: RE: Zsh observations
Date: Mon, 9 Jul 2001 09:49:22 +0400
Message-ID: <001001c1083a$e7372200$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <5.1.0.14.2.20010708192157.03ca2628@imap.local.mscha.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006

>
> Sorry, I made a mistake in my exaple.  I meant:
>          % ./setu<TAB>

(tty1)% ./fTAB
(tty1)% ./foo.exe
(tty1)% ll fo*
-rwxrwxrwx    1 MW1G017  ITS             4 Jul  9 09:40 foo.exe*
(tty1)% chmod -x foo.exe
(tty1)% ./fo
No matches for: `external command', `executable file or directory', `builtin
com
mand', `shell function', `alias', `reserved word', `job', or `parameter'

Are you sure setup.exe has execute permissons?

> Another, less useful, example world be:
>          % /usr/local/bin/zs<TAB>
>

Same question.

The problem is, Cygwin will execute file even if it has no executable bit
set. But zsh relies on it to find out executable file(s).  If you do not use
NTEA Cygwin is using some magic to find out (and return in stat) if file is
executable; but if you use NTEA it completly relies on file modes. I do not
know any easy workaround here.

Zsh just assumes that anything in path is executable, hence it can complete
command in path but the same command by file name. I cannot at the moment
say if it correct or not.

-andrej


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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