X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=4.0 required=5.0 tests=AWL,BAYES_40,BOTNET,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Message-id: <4C0F0219.2060103@cygwin.com> Date: Tue, 08 Jun 2010 22:53:13 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: how to create a wrapper chmod.exe for cygwin 1.7 References: <556131 DOT 8302 DOT qm AT web94502 DOT mail DOT in2 DOT yahoo DOT com> In-reply-to: <556131.8302.qm@web94502.mail.in2.yahoo.com> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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