X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4BE4AA62.5070302@alice.it> Date: Sat, 08 May 2010 02:03:46 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: cygwin Subject: Re: Text editor with shell integration 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 Luc Hermitte wrote: > Hello, > > "lood" wrote : Please, read this: http://cygwin.com/acronyms/#PCYMTNQREAIYR > I have written cyg-wrapper.sh to answer this need. > http://hermitte.free.fr/cygwin/#Win32 Very interesting! (That script should be added to Cygwin, as new package or to cygutils...) Suppose I want a wrapper for: runas.exe /user:pippo C:\cygwin\Cygwin.bat to be started as $ sudos su I have tried this (in .bashrc): ===================== SU_ARG="/Cygwin.bat" sudos() { opt='' if [ `expr "$*" : 'su\>'` -gt 0 ] ; then opt+="`cygpath -p -w "$SU_ARG"`" fi cyg-wrapper.sh "/cygdrive/c/WINDOWS/system32/runas.exe" \ --slashed-opt --binary-opt=-user:pippo $opt } ================================= but... it does not work :( What I am missing!? Thanks, Angelo. -- 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