latest cygwin: 'run' problem
Buchbinder, Barry (NIH/NIAID) [E]
BBuchbinder@niaid.nih.gov
Tue Sep 9 13:31:00 GMT 2014
Andrey Repin sent the following at Tuesday, September 09, 2014 9:08 AM
>That makes little sense. Could be solved, though. CMD doesn't offer a
>way to distinguish between file and directory, but we have test.
Every directory contains a virtual file named nul (note: only one L;
serves the function of /dev/null ), so one can test for that.
c:\> if exist c:\Windows\nul echo y
y
c:\> if exist c:\Windows\explorer.exe\nul echo y
c:\>
- Barry
Disclaimer: Statements made herein are not made on behalf of NIAID.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list