Re: problem invoking rxvt from java on windows 7

2010-12-27 Thread Alexandre Bezroutchko
(build 1.6.0_22-b04) Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing) Any idea why this can possibly happen? fixes/workarounds? Thank you. Best regards, Alexandre Bezroutchko www.gremwell.com -- Problem reports: http://cygwin.com/problems.html FAQ:

problem invoking rxvt from java on windows 7

2010-12-01 Thread Alexandre Bezroutchko
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing) Any idea why this can possibly happen? fixes/workarounds? Thank you. Best regards, Alexandre Bezroutchko www.gremwell.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Docu

Re: Portable Cygwin: replacing drivename in a text file

2010-11-25 Thread Alexandre Bezroutchko
you can use a different separator in the sed command. You can use the following line echo 123 | sed "s%2%${HOME}%g" Right, this will work in most cases. But will fail if $HOME happens to contains % sign. The version I have suggested in the previous post is more robust. Best regards, Alex

Re: Portable Cygwin: replacing drivename in a text file

2010-11-25 Thread Alexandre Bezroutchko
Hi Fergus, The problem is $HOME contains '/' character used as delimited in regex. You need to escape it first: HOME_ESCAPED=`echo "$HOME" | sed 's#/#/#g'` echo 123 | sed "s/2/$HOME_ESCAPED/g" It is not cygwin-specific. Cheers, Alex www.gremwell.com On 11/25/2010 02:15 PM, Fergus wrote:

Re: Portable Cygwin: replacing drivename in a text file

2010-11-24 Thread Alexandre Bezroutchko
I'm not the expert on cygwin.exe, but there might be an easier way to solve you problem. For POSIX shell scripts you could keep a symlink /my-usb-stick pointing to /cygdrive/X, and use that symlink in your scripts. Similarly, for Windows batch scripts you keep drive mapping with native Windows

stripping/relocating cygwin distribution

2010-11-16 Thread Alexandre Bezroutchko
w to fix it) are greatly appreciated... Am I doing something fundamentally wrong by relocating/stripping cygwin distribution? I thought recent versions of cygwin should tolerate execution from alternative locations, as there is no more pathes hardcoded into the registry. Best regards, A

Re: 'screen' started in detached mode -- cannot reattach

2010-04-28 Thread Alexandre Bezroutchko
Andrew, Yes, I understand that it is not possible for you to invest too much time into an exotic bug like this one. Thank you for the response. Apparently, reattaching works from rxvt if the detached 'screen' process was launched from the console. With a little bit of luck it let me continue usin

'screen' started in detached mode -- cannot reattach

2010-04-28 Thread Alexandre Bezroutchko
reattach to it, the reattaching 'screen' process hangs. It is easy to reproduce: sh-3.2# screen -d -m sleep 1000 sh-3.2# screen -ls There is a screen on: 1072..rock (Detached) 1 Socket in /tmp/screens/S-abb. sh-3.2# screen -r ... Output of cygcheck is attached. Please help... Best