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]
Other format: [Raw text]

How do you write scripts with portable filenames?


"Portable" between Cygwin and Unix systems, that is.  I'm thinking of
the problems caused in particular by command filenames having
extensions on Windows and none on Unix.

E.g. if I say "ls x", where X.EXE exists, ls will output x (as long as
nocaseglob is set).  But "strings x" fails because the file x doesn't
exist.

Is my goal of writing portable shell scripts doomed?  Am I going to
have to say "strings x.exe"?  :-(

Is there any cool Cygwin magic to help with this, like there is in
U/Win?

luke


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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