Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/