Get file type information about name returned from "type -p"

Karr, David david.karr@cacheflow.com
Wed May 9 10:42:00 GMT 2001


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



More information about the Cygwin mailing list