Thanks for your answer.
But I'm not speeking about execute a file ... I'm using ls and not ls.exe.
It's about how we can deal with files on MS.
Here is another example. I know I can parse /etc/shells.
I want to list all shell present:
find /bin -name "*sh" -print
On MS, I need to use :
find /bin -name "*sh.exe" -print
I'm using UWin since years and I newer have to deal with this.
So, it's perhaps just a need of vacation on my side.
Regards,
Yves
2010/9/29 FELLIN, JEFF (ATTSI) <[email protected]>:
> Yves,
> Yes, you are correct in current Microsoft systems do not require the .exe
> extension. However, some of the older MS systems UWIN can be installed on do
> require the .exe extension. Hence why UWIN executables have the .exe
> extension.
>
> On not using the .exe extension for executable files, internally uwin checks
> for the named file being an executable. If it is an executable the file is
> used. If there is no executable file with the name, internally checks for the
> name with a .exe extension. Hence this is why you don't need to use the .exe
> extension on files.
>
> So you can type /bin/ksh -c "echo no .exe" and /bin/ksh.exe -c "echo with
> .exe" and both will work.
>
> Jeff Fellin
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Yves Crespin
> Sent: Wednesday, September 29, 2010 14:41
> To: uwin-users
> Subject: [uwin-users] binary file name on windows
>
> Hello,
>
> I think that .exe is optional.
> In all my script, I newer used .exe extension.
>
> I'm searching the files ending with sh in /usr/bin.
> And, it's a surprise for me ksh is not present.
> Il need to use *sh.exe ...
> Is it a regression?
>
> Regards,
>
> Yves
>
> $ ls -l *sh
> -rwxrwxr-x 1 Administrateur Aucun 25 Jan 13 2009 chsh
> -rwxrwxr-x 1 Administrateur Aucun 4509 Sep 7 2001 cpio.sh
> -rwxrwxr-x 1 Administrateur Aucun 83 Feb 6 2009 getconf.sh
> -rwxrwxr-x 1 Administrateur Aucun 2570 Jan 6 2010 mamsh
> -rwxrwxr-x 2 Administrateur Aucun 3616 Aug 4 2002 tar.sh
> $ ls -l *sh.exe
> -rwxrwxr-x 2 Administrateur Aucun 226304 Sep 15 23:55 csh.exe
> -rwxrwxr-x 2 Administrateur Aucun 6144 Sep 15 23:49 ksh.exe
> -rwxrwxr-x 1 Administrateur Aucun 13824 Aug 13 06:57 rsh.exe
> -rwxrwxr-x 2 Administrateur Aucun 6144 Sep 15 23:49 sh.exe
> -rwxrwxr-x 2 Administrateur Aucun 229376 Aug 22 14:02 ssh.exe
> -rwxrwxr-x 2 Administrateur Aucun 226304 Sep 15 23:55 tcsh.exe
> -rwxrwxr-x 1 Administrateur Aucun 8192 Sep 15 23:51 tksh.exe
> $ uname -a
> UWIN-XP Jeolikote 4.5/5.1 2010-09-01 i686 i686 32/32 UWIN
> $
> _______________________________________________
> uwin-users mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/uwin-users
>
_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users