This is the mail archive of the cygwin 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]

Re: how to create a wrapper chmod.exe for cygwin 1.7


On 6/8/2010 9:55 PM, prakash babu wrote:
In cygwin 1.7 chmod does not work with MS DOS style paths and I need to
convert these paths to POSIX style paths before doing the chmod

Is there a way to create a wrapper chmod.exe that will do this conversion and
then perform the chmod operation.

How about creating a bash alias which uses "cygpath -ua" to do the conversion of the parameter? If you need to be able to handle multiple files, you could turn the simple alias into a function the loops through all the parameters, for example.

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?

-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: 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]