delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/13/12:35:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 13 Jun 2005 18:35:37 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: tcsh doesn't find commands that end with .exe
Message-ID: <20050613163537.GA11778@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <42ADA78B DOT 9040300 AT scytek DOT de> <20050613160117 DOT GC3522 AT calimero DOT vinschen DOT de> <42ADAFC9 DOT 9090401 AT scytek DOT de>
Mime-Version: 1.0
In-Reply-To: <42ADAFC9.9090401@scytek.de>
User-Agent: Mutt/1.4.2i

On Jun 13 12:09, Volker Quetschke wrote:
> Corinna Vinschen wrote:
> >>I have the following problem with tcsh:
> >>
> >>tcsh doesn't find the program if the .exe extension is given.  whoami is
> >>only an example, this also happens to other programs.
> >>
> >>[quetschke AT Macros ~]$ which whoami
> >>/usr/bin/whoami
> >>[quetschke AT Macros ~]$ which whoami.exe
> >>whoami.exe: Command not found.
> >>[quetschke AT Macros ~]$ whoami
> >>quetschke
> >>[quetschke AT Macros ~]$ whoami.exe
> >>whoami.exe: Command not found.
> >>[quetschke AT Macros ~]$ /bin/which whoami.exe
> >>/usr/bin/whoami.exe
> >
> >That's by design.
> You mean the grand design that leads earth and all its inhabitants
> to eternal bliss?
> 
> And if so, it seems to have a flaw:
> 
> [quetschke AT Macros ~]$ which cmd.exe
> /cygdrive/c/WINDOWS/system32/cmd.exe
> [quetschke AT Macros ~]$ which cmd
> /cygdrive/c/WINDOWS/system32/cmd
> 
> Care to elaborate where the difference comes from?
> 
> Why should I not be allowed to start a program with it's
> real name? And why does it work sometimes?

Dunno why it prints cmd.exe but by design (minus flaws) tcsh only
starts applications given w/o path if the application is in the
internal hash table.  The internal hash table stores the application
names w/o .exe suffix.

If you need something different: http://cygwin.com/acronyms/#PTC.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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