Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <2C08D4EECBDED41184BB00D0B747334202FB438A@exchanger.cacheflow.com> From: "Karr, David" To: "'cygwin AT cygwin DOT com'" Subject: Get file type information about name returned from "type -p" Date: Wed, 9 May 2001 10:42:40 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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