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: Text editor with shell integration


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


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