This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tcsh doesn't find commands that end with .exe


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@Macros ~]$ which whoami
/usr/bin/whoami
[quetschke@Macros ~]$ which whoami.exe
whoami.exe: Command not found.
[quetschke@Macros ~]$ whoami
quetschke
[quetschke@Macros ~]$ whoami.exe
whoami.exe: Command not found.
[quetschke@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@Macros ~]$ which cmd.exe
/cygdrive/c/WINDOWS/system32/cmd.exe
[quetschke@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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]