cc: [email protected]
Subject: Re: Re: [uwin-users] binary file name on windows
--------
> 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
>
>
When a unix system call is given the file sh it does not exist, but
sh.exe does, then it uses sh.exe. However, in the case above,
it is using readdir() to get the file names to match and therefore
doesn't work as expected.
On the other hand, if readir() were to string off the .exe, then
find /bin -name "*sh.exe" -print
would not work.
David Korn
[email protected]
_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users