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

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
Message-ID: <42ADAFC9.9090401@scytek.de>
Date: Mon, 13 Jun 2005 12:09:45 -0400
From: Volker Quetschke <quetschke AT scytek DOT de>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: tcsh doesn't find commands that end with .exe
References: <42ADA78B DOT 9040300 AT scytek DOT de> <20050613160117 DOT GC3522 AT calimero DOT vinschen DOT de>
In-Reply-To: <20050613160117.GC3522@calimero.vinschen.de>
X-IsSubscribed: yes

--------------enig61EFB96BD40F2BDD64EB3817
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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?

Volker

--
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

--------------enig61EFB96BD40F2BDD64EB3817
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCra/MPTXJup+KeF0RAva0AJ4h27CLbwsQJQSVGGO808WWWYXddACgl7T4
UStouWlpbtcDgMiLqUKRZFw=
=B8jR
-----END PGP SIGNATURE-----

--------------enig61EFB96BD40F2BDD64EB3817--

- Raw text -


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