This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]