Text editor with shell integration

Angelo Graziosi angelo.graziosi@alice.it
Sat May 8 00:03:00 GMT 2010


Luc Hermitte wrote:
> Hello,
>
> "lood" <HIDDEN please!> 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



More information about the Cygwin mailing list