This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Get file type information about name returned from "type -p"
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Subject: Get file type information about name returned from "type -p"
- From: "Karr, David" <david dot karr at cacheflow dot com>
- Date: Wed, 9 May 2001 10:42:40 -0700
I'm trying to design some validation scripts for an environment. One thing
I want to check for is whether a script named "foo" is earlier in the path
than a file named "foo.exe". I already have tools for parsing and searching
the PATH, but when Cygwin reports that it found a "foo" in my path, I'm
having trouble figuring out exactly what the file name is, or what kind of
file it is. The "type" command gives me a name without an extent, but the
"file" command doesn't like that.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple