Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Hongyi Zhao
On Fri, 19 Feb 2010 12:40:15 +0800, Hongyi Zhao wrote: >@echo off >C:\cygwin\bin\bash --login "%~dp0myscript" I've found a more strange thing: If I change the batch file into the following form, then it will be run smoothly: @echo off C:\cygwin\bin\bash --login %~dp0myscript The QUOTATION MARK

Changing the "nature" of setup.exe

2010-02-18 Thread SJ Wright
Hello, all. This is my first post to the list. I hope my idea meets with some consideration. I know from recent experience that it is all too easy to update, and at the same time install practically everything available, when one has 'in one's hands' a downloaded copy of the latest setup.exe

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Hongyi Zhao
On Fri, 19 Feb 2010 00:16:55 -0500, "Larry Hall (Cygwin)" wrote: >>CYGWIN environment variable option "nodosfilewarning" turns off this >> warning. How should I set the option "nodosfilewarning" in order to turns off the corresponding warnings. [snipped] > >> What should I do to solve this

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 11:40 PM, Hongyi Zhao wrote: When I double click on this dos batch, I'll meet the following errors: -- cygwin warning: MS-DOS style path detected: "F:\zhaohs\Desktop\鏂版煡鏂囩尞\myscript" Preferred POSIX equivalent is: "F:/zhaohs/Desktop/鏂版煡鏂囩尞/myscript"

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Hongyi Zhao
On Fri, 19 Feb 2010 12:40:15 +0800, Hongyi Zhao wrote: [snip] >What should I do to solve this problem? ps. I use windows xp sp3. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin

1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Hongyi Zhao
Hi all, I upgrade my cygwin from 1.5 to 1.7.1 and meet this issue: Unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login myscript. For detail, the bash script, i.e., myscript and the dos batch file which is used to invoke the myscript are both reside in a dire

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Ilguiz Latypov
> Thanks to your createprocess.c/dumpargs.c pair, I could figure the existing > Cygwin's parsing without looking into its source code. It turned to ignore > the > escaping power of a bare (unquoted) backslash when it was followed by a > double > quote, which is against both MSVC and Bash

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Ilguiz Latypov
> As you can see dumpargs_gcc receives "\127.0.0.127\foo.cxx" and dumpargs_cl > receives "\\127.0.0.127\foo.cxx". Interesting. I am confused, too. (1) Native-only parameter passing: execv(PROG, ARGV) -> MSVCRT -> line = M(ARGV) -> CreateProcess( PROG, line, .. ) -> MSVC

1.7.1(0.218/5/3): ls -R bug (Windows XP)

2010-02-18 Thread Jeff Wilcox
In Cygwin 1.7.x if I ls -R the root of a drive which contains only directories (i.e. no files at the root level), whatever directory comes first is omitted from the listing and the following error is thrown: ls: ./: not listing already-listed directory (Cygwin 1.5.x doesn't do this.) -- Proble

Re: any cygwin survey somewhere ?

2010-02-18 Thread Cyrille Lefevre
Tim Prince a écrit : Don't know what you mean by "general account." well, in France, we say "grand compte", which literally means "great account", but google say "general account" ! it stands for a big company which hundred of employees. thanks anyway for your answer. as asked by Larry, I

Re: any cygwin survey somewhere ?

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 04:56 PM, Cyrille Lefevre wrote: Hi, I'm looking for a cygwin usage survey in a professional environment ? any links somewhere ? if not : Can't you set up a survey at one of the available free sites instead? I realize that you requested the people who want to take the survey sho

any cygwin survey somewhere ?

2010-02-18 Thread Cyrille Lefevre
Hi, I'm looking for a cygwin usage survey in a professional environment ? any links somewhere ? if not : which version of cygwin are you using ? 1.5 or 1.7 ? which windows environment are you using ? windows server legacy (2K, XP pro), 2K3 (R2?), 2K8 (R2?) ? do you have any sort of commercial s

Re: ssh + patch + $TMP

2010-02-18 Thread Christopher Faylor
On Thu, Feb 18, 2010 at 09:52:02PM +0100, Corinna Vinschen wrote: >On Feb 18 15:39, Charles Wilson wrote: >> I ran across an interesting "feature" of remote access today. I was >> ssh'ed in to my cygwin computer, under my normal windows/cygwin account >> name, and tried to run 'patch': >> >> $ pat

RE: Cygwin Rsync/SSH performance issue

2010-02-18 Thread Jan Alphenaar
Hi, Today I did another interesting test in an attempt to resolve this issue. With Microsoft Process Explorer (downloadable from the Microsoft website) it is possible to 'pause' and 'resume' processes. When I start a rsync/ssh session to my server and pause the SSH process. The rsync process cons

Re: Slow fork issue - Win x64

2010-02-18 Thread Jarkko Häkkinen
Your results notwithstanding, my performance (if you want to call looping 'date's that) went down five-fold from what it was on XP 32-bit and corresponds to the figures posted at the beginning of the thread. And as to the bash not being "efficient shell", that may very well be but I think it would

Re: "undefined reference to `_JNI_CreateJavaVM'"

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 03:50 PM, Gary wrote: On Thu, Feb 18, 2010 at 11:47:13AM -0500, Larry Hall (Cygwin) wrote: On 02/18/2010 05:43 AM, Gary wrote: I've basically followed along with what is written at http://www.inonit.com/cygwin/jni/invocationApi/ (built an import library, passed ld the "-L. -ljvm"

Re: ssh + patch + $TMP

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 03:52 PM, Corinna Vinschen wrote: On Feb 18 15:39, Charles Wilson wrote: I ran across an interesting "feature" of remote access today. I was ssh'ed in to my cygwin computer, under my normal windows/cygwin account name, and tried to run 'patch': $ patch -p1 -R --dry-run< ../some-p

Re: setup.exe - a small feature request

2010-02-18 Thread Gary
On Thu, Feb 18, 2010 at 05:23:03PM +, Dave Korn wrote: > On 18/02/2010 16:58, Gary wrote: > > and the following 'make' seem to work fine. I sort of assumed it was > > that, but thought it was best to clarify first. Is it worth updating the > > README to clarify this, > > Yeah, it is, and I

Re: "undefined reference to `_JNI_CreateJavaVM'"

2010-02-18 Thread Gary
On Thu, Feb 18, 2010 at 11:47:13AM -0500, Larry Hall (Cygwin) wrote: > On 02/18/2010 05:43 AM, Gary wrote: > >I've basically followed along with what is written at > >http://www.inonit.com/cygwin/jni/invocationApi/ (built an import > >library, passed ld the "-L. -ljvm" parameters, and so on). One

Re: ssh + patch + $TMP

2010-02-18 Thread Corinna Vinschen
On Feb 18 15:39, Charles Wilson wrote: > I ran across an interesting "feature" of remote access today. I was > ssh'ed in to my cygwin computer, under my normal windows/cygwin account > name, and tried to run 'patch': > > $ patch -p1 -R --dry-run < ../some-patch.patch > patch: Can't create fil

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 03:24 PM, Piotr Krukowiecki wrote: On Thu, Feb 18, 2010 at 7:02 PM, Larry Hall (Cygwin) reply-to-list-only-lh at cygwin period com wrote: ^^ . Don't feed the spammers. Thanks. On 02/18/2010 12:55 PM, Piotr

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Corinna Vinschen
On Feb 18 21:24, Piotr Krukowiecki wrote: > On Thu, Feb 18, 2010 at 7:02 PM, Larry Hall (Cygwin) > wrote: > > On 02/18/2010 12:55 PM, Piotr Krukowiecki wrote: > >> - if the executed program is compiled with cygwin's gcc the program > >> receives \127.0.0.127\foo.cxx (just one backslash at the begi

ssh + patch + $TMP

2010-02-18 Thread Charles Wilson
I ran across an interesting "feature" of remote access today. I was ssh'ed in to my cygwin computer, under my normal windows/cygwin account name, and tried to run 'patch': $ patch -p1 -R --dry-run < ../some-patch.patch patch: Can't create file /c/Users/CYG_SE~1/AppData/Local/Temp/poFOD7WH : N

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Piotr Krukowiecki
On Thu, Feb 18, 2010 at 7:02 PM, Larry Hall (Cygwin) wrote: > On 02/18/2010 12:55 PM, Piotr Krukowiecki wrote: >> - if the executed program is compiled with cygwin's gcc the program >> receives \127.0.0.127\foo.cxx (just one backslash at the begining). >> - if it's compiled with cl it gets \\127.0

Re: TTY write deadlock

2010-02-18 Thread Andy Koppe
On 5 April 2009 00:03, Christopher Faylor wrote: > On Sat, Apr 04, 2009 at 03:11:06PM -0700, Josh Stone wrote: >>I've discovered a deadlock in Cygwin which is pretty easy to >>reproduce.?? This seems to happen on all of the console windows I can >>find, except for running in a normal cmd.exe.  All

Expect script works in 1.5 but fails in 1.7

2010-02-18 Thread Bogdan Nicolau
  Hi, I have a simple Expect script that starts as: set timeout -1 spawn ftp a.b.c.d match_max 10 expect  "*Name (a.b.c.d): " send -- "anonymous\r" expect  "*Password:" send -- "anonymous\r" This is fine in Cygwin 1.5 on my PC (installed in Nov 2008) yet on some other PCs where I instal

Apache2 crashing/degrading x64 Windows 7 system

2010-02-18 Thread Stacey Campbell
I reported this problem a while back. Out of the box Cygwin 1.7.1 Apache2 eventually brings down my Windows 7 Home quad core x86 system if httpd2 is subject to only a relatively light load. A workaround seems to be to heavily limit the number of processes (and sockets) used by Apache2. This

Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 12:55 PM, Piotr Krukowiecki wrote: Hello, In short, I have a problem with passing "\\127.0.0.127\foo.cxx" argument to a called program: - if the executed program is compiled with cygwin's gcc the program receives \127.0.0.127\foo.cxx (just one backslash at the begining). - if it's

CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?

2010-02-18 Thread Piotr Krukowiecki
Hello, In short, I have a problem with passing "\\127.0.0.127\foo.cxx" argument to a called program: - if the executed program is compiled with cygwin's gcc the program receives \127.0.0.127\foo.cxx (just one backslash at the begining). - if it's compiled with cl it gets \\127.0.0.127\foo.cxx (do

Re: setup.exe - a small feature request

2010-02-18 Thread Dave Korn
On 18/02/2010 16:58, Gary wrote: > and the following 'make' seem to work fine. I sort of assumed it was > that, but thought it was best to clarify first. Is it worth updating the > README to clarify this, Yeah, it is, and I meant to do that some time ago but lost track of it amongst other stuff

Re: setup.exe - a small feature request

2010-02-18 Thread Gary
On Thu, Feb 18, 2010 at 11:04:14AM -0500, Christopher Faylor wrote: > On Thu, Feb 18, 2010 at 10:59:26AM -0500, Eliot Moss wrote: > >On 2/18/2010 9:52 AM, Gary wrote: > >> configure:3021: checking whether the C++ compiler works > >> configure:3043: g++ -mno-cygwin -I /usr/include/ncurses conftes

Re: Cygwin running as NT Service not displaying status in Services Window

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 05:49 AM, ShivD wrote: Cygwin version is 1.3 This is as old as the hills and is no longer supported. The current version of Cygwin is 1.7.1. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalt

Re: "undefined reference to `_JNI_CreateJavaVM'"

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 05:43 AM, Gary wrote: I've basically followed along with what is written at http://www.inonit.com/cygwin/jni/invocationApi/ (built an import library, passed ld the "-L. -ljvm" parameters, and so on). One difference is that gcc no longer supports -mno-cygwin, but I'm not convinced t

Re: setup.exe - a small feature request

2010-02-18 Thread Eliot Moss
I think the answer is to install and use mingw. In any case, this kind of makes sense, since most things compiler *under* cygwin want the cygwin libraries ... but setup.exe needs to run *before* cygwin is installed ... No, the answer is to use gcc-3. It should be fairly obvious that setup can't

Re: setup.exe - a small feature request

2010-02-18 Thread Christopher Faylor
On Thu, Feb 18, 2010 at 10:59:26AM -0500, Eliot Moss wrote: >On 2/18/2010 9:52 AM, Gary wrote: >> On Thu, Feb 18, 2010 at 07:44:37AM -0600, Jeremy Bopp wrote: >>> Eric Blake wrote: According to Gary on 2/18/2010 3:49 AM: > Is it already possible to somehow save the value of the "Create Sho

Re: setup.exe - a small feature request

2010-02-18 Thread Eliot Moss
On 2/18/2010 9:52 AM, Gary wrote: On Thu, Feb 18, 2010 at 07:44:37AM -0600, Jeremy Bopp wrote: Eric Blake wrote: According to Gary on 2/18/2010 3:49 AM: Is it already possible to somehow save the value of the "Create Shortcut on Desktop" checkbox? I would also like such a patch. Just FYI

Re: setup.exe - a small feature request

2010-02-18 Thread Gary
On Thu, Feb 18, 2010 at 07:44:37AM -0600, Jeremy Bopp wrote: > Eric Blake wrote: > > According to Gary on 2/18/2010 3:49 AM: > >> Is it already possible to somehow save the value of the "Create Shortcut > >> on Desktop" checkbox? > > I would also like such a patch. > Just FYI, a shortcut with the

Re: setup.exe - a small feature request

2010-02-18 Thread Jeremy Bopp
Eric Blake wrote: > According to Gary on 2/18/2010 3:49 AM: >> Is it already possible to somehow save the value of the "Create Shortcut >> on Desktop" checkbox? If not, would it be possible to add this feature >> at some point (yeah, I know, PGA/TC :-) ? I'm sure I'm not the only one >> who doesn't

Re: setup.exe - a small feature request

2010-02-18 Thread Bengt Larsson
Gary wrote: >Is it already possible to somehow save the value of the "Create Shortcut >on Desktop" checkbox? If not, would it be possible to add this feature >at some point (yeah, I know, PGA/TC :-) ? I'm sure I'm not the only one >who doesn't want a shortcut and is getting fed up with having to un

Re: File format problem after updatin to 1.7.1

2010-02-18 Thread Marta Ghidella
Jeremy Bopp bopp.net> writes: > > I've not used that script before, but from that text it seems that the > script can only migrate user mounts, not system mounts. I get the > impression that this problem is resulting from system mounts going binary. > > -Jeremy > Hello Jeremy: I've just upda

Re: setup.exe - a small feature request

2010-02-18 Thread Eric Blake
According to Gary on 2/18/2010 3:49 AM: > Is it already possible to somehow save the value of the "Create Shortcut > on Desktop" checkbox? If not, would it be possible to add this feature > at some point (yeah, I know, PGA/TC :-) ? I'm sure I'm not the only one > who doesn't want a shortcut and is

Setup folder out of date

2010-02-18 Thread Rich Siegelman
http://cygwin.com/setup/ is not being updated (last update 13-Jan-2009). -- 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

setup.exe - a small feature request

2010-02-18 Thread Gary
Is it already possible to somehow save the value of the "Create Shortcut on Desktop" checkbox? If not, would it be possible to add this feature at some point (yeah, I know, PGA/TC :-) ? I'm sure I'm not the only one who doesn't want a shortcut and is getting fed up with having to uncheck the box ev

Cygwin running as NT Service not displaying status in Services Window

2010-02-18 Thread ShivD
Hi All, am using Cygwin on 64 bit Windows 2008 machine to host Webmin. Cygwin version is 1.3 and Webmin version is 1.490. I am running cygwin as a windows service. Following is the command to create the service: sc create "Demo Service" binPath= "C:\demo\bin\cygrunsrv.exe" start= auto. When I a

"undefined reference to `_JNI_CreateJavaVM'"

2010-02-18 Thread Gary
I am trying to call some Java code from C via JNI, and am having problems building: main.o:main.c:(.text+0xcc): undefined reference to `_JNI_CreateJavaVM' I've basically followed along with what is written at http://www.inonit.com/cygwin/jni/invocationApi/ (built an import library, passed ld the