How to make cygwin redirect in UNIX mode?

2009-06-08 Thread Pan ruochen
Hi All, I do as the manual (http://cygwin.com/cygwin-ug-net/using-textbinary.html) says: When redirecting, the Cygwin shells uses rules (a-e). For these shells the relevant value of CYGWIN is that at the time the shell was launched and not that at the time the program is executed. Non-Cygwin shell

[ANNOUNCEMENT] gmp-4.3.1-3 for cygwin-1.7

2009-06-08 Thread David Billinghurst
Version 4.3.1-3 of gmp, libgmp3, libgmpxx4 and libgmp-devel for cygwin-1.7 have been uploaded. This release is intended provide DLLs that can be successfully rebased. PACKAGE DESCRIPTION === Homepage: http://gmplib.org/ License : GNU LGPL GMP is a free library for arbitrary pre

[ANNOUNCEMENT] mpfr-2.4.1-4 for cygwin-1.7

2009-06-08 Thread David Billinghurst
Version 2.4.1-4 of mpfr/libmpfr1/libmpfr-devel for cygwin-1.7 has been uploaded. This release is intended provide a DLL that can be successfully rebased, unlike the DLL in version 2.4.1-3. PACKAGE DESCRIPTION === Homepage: http://www.mpfr.org License : GNU LGPL 2.1 or later The

R: How to make cygwin redirect in UNIX mode?

2009-06-08 Thread Marco Atzeri
--- Lun 8/6/09, Pan ruochen ha scritto: > Da: Pan ruochen > Oggetto: How to make cygwin redirect in UNIX mode? > A: cygwin@cygwin.com > Data: Lunedì 8 giugno 2009, 11:40 > Hi All, > > I do as the manual (http://cygwin.com/cygwin-ug-net/using-textbinary.html) > says: > When redirecting, the Cyg

Re: R: How to make cygwin redirect in UNIX mode?

2009-06-08 Thread Marco Atzeri
as you can see: Mount entries: these map POSIX directories to your NT drives. -NT- -POSIX--Type- -Flags- C:\cygwin / system textmode C:\cygwin/bin /usr/bin system textmode C:\cygwin/lib /usr/lib system textmode . /cygdrive system textmode,cygd

Re: doc about the cygwin vfs?

2009-06-08 Thread jean-luc malet
there is obviously a kind of vfs else /cygdrive/C or / wouldn't exist. /dev/null neither as long as the fs shown to the application isn't the same as the one of the native OS there is a vfs... JLM On Sun, Jun 7, 2009 at 9:36 PM, Corinna Vinschen wrote: > On Jun  7 16:35, jean-luc malet wr

Re: LFTP issue

2009-06-08 Thread Chris Sutcliffe
>  First thought that springs to my mind: what kind of console is in use here? >  What is the setting of CYGWIN=(no)tty?  And does Ctrl+D work as well as > Ctrl+C? Both a Cygwin console, as well as MinTTY. Ctrl+D doesn't work, only Ctrl+C does. echo $CYGWIN displays nothing (so I assume that me

R: [1.7] output redirection problems with gfortran

2009-06-08 Thread Marco Atzeri
--- Lun 8/6/09, Gustavo Seabra ha scritto: > Da: Gustavo Seabra > Oggetto: [1.7] output redirection problems with gfortran > A: cygwin@cygwin.com > Data: Lunedì 8 giugno 2009, 15:28 > Hi All, > > I'm having a strange problem with gfortran here. I am > trying to run a > simple configure program

Re: doc about the cygwin vfs?

2009-06-08 Thread Dave Korn
jean-luc malet wrote: > there is obviously a kind of vfs else /cygdrive/C or / wouldn't > exist. /dev/null neither as long as the fs shown to the > application isn't the same as the one of the native OS there is a > vfs... Ah, fhandlers: http://cygwin.com/cgi-bin/cvsweb.cgi/~checkout~/

Re: [1.7] output redirection problems with gfortran

2009-06-08 Thread Dave Korn
Gustavo Seabra wrote: > Hi All, > > I'm having a strange problem with gfortran here. I am trying to run a > simple configure program, but it chokes on the fortran compilation. > The test program it uses is very simple: > > $ cat testp.f > program testf > write(6,*) 'testing a Fortran

Re: LFTP issue

2009-06-08 Thread Corinna Vinschen
On Jun 8 09:12, Chris Sutcliffe wrote: > >  First thought that springs to my mind: what kind of console is in use here? > >  What is the setting of CYGWIN=(no)tty?  And does Ctrl+D work as well as > > Ctrl+C? > > Both a Cygwin console, as well as MinTTY. Ctrl+D doesn't work, only > Ctrl+C does.

bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Haojun Bao
If you have cd-rom/soft-disk drive, please run the following test case, for x in {a..z}; do if test -e /cygdrive/$x/Windows ; then echo "Windows found on /cygdrive/$x" cd /cygdrive/$x fi done And here's the result: Windows found on /cygdrive/a bash: cd

Re: LFTP issue

2009-06-08 Thread Chris Sutcliffe
> I just tried lftp from the distro under the latest Cygwin 1.7 DLL from > CVS and both, `ls | grep foo' as well as `ls | less' work fine for me in > a console window as well as in mintty.  I'm puzzled what could be the > cause for what you observe. Is there a snapshot I can try? I'm currently us

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Corinna Vinschen
On Jun 8 22:53, Haojun Bao wrote: > > If you have cd-rom/soft-disk drive, please run the following test case, > > for x in {a..z}; do > if test -e /cygdrive/$x/Windows ; then >echo "Windows found on /cygdrive/$x" >cd /cygdrive/$x > fi > done > > And here's t

Re: LFTP issue

2009-06-08 Thread Corinna Vinschen
On Jun 8 11:04, Chris Sutcliffe wrote: > > I just tried lftp from the distro under the latest Cygwin 1.7 DLL from > > CVS and both, `ls | grep foo' as well as `ls | less' work fine for me in > > a console window as well as in mintty.  I'm puzzled what could be the > > cause for what you observe. >

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Corinna Vinschen
On Jun 8 17:06, Corinna Vinschen wrote: > On Jun 8 22:53, Haojun Bao wrote: > > > > If you have cd-rom/soft-disk drive, please run the following test case, > > > > for x in {a..z}; do > > if test -e /cygdrive/$x/Windows ; then > >echo "Windows found on /cygdrive/$x" > >

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Haojun Bao
Corinna Vinschen writes: > On Jun 8 22:53, Haojun Bao wrote: >> >> If you have cd-rom/soft-disk drive, please run the following test case, >> >> for x in {a..z}; do >> if test -e /cygdrive/$x/Windows ; then >>echo "Windows found on /cygdrive/$x" >>cd /cygdrive/$x >>

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Haojun Bao
Corinna Vinschen writes: > On Jun 8 22:53, Haojun Bao wrote: >> >> If you have cd-rom/soft-disk drive, please run the following test case, >> >> for x in {a..z}; do >> if test -e /cygdrive/$x/Windows ; then >>echo "Windows found on /cygdrive/$x" >>cd /cygdrive/$x >>

Re: bash `test -e' problem with cdrom drive and soft-disk drive

2009-06-08 Thread Corinna Vinschen
On Jun 8 23:19, Haojun Bao wrote: > Corinna Vinschen writes: > > > On Jun 8 22:53, Haojun Bao wrote: > >> > >> If you have cd-rom/soft-disk drive, please run the following test case, > >> > >> for x in {a..z}; do > >> if test -e /cygdrive/$x/Windows ; then > >>echo "Windows f

RE: How to run GNU Emacs from Windows icon

2009-06-08 Thread David Karr
> -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf > Of Andrew DeFaria > Sent: Friday, June 05, 2009 8:03 PM > To: cygwin@cygwin.com > Subject: Re: How to run GNU Emacs from Windows icon > > David Karr wrote: > >> -Original Message- > >>

Occasional OpenSSH hang with Cygwin 1.7

2009-06-08 Thread Karl M
Hi All... The other day, someone posted about an occasional "first time of the day" hang when sshing into a Cygwin box. I commented that I had not seen the problem with Cygwin 1.7 on the server host. I just had a hang from a fast Vista machine to a slow XP laptop, both running Cygwin 1.7 (w

Re: How to make cygwin redirect in UNIX mode?

2009-06-08 Thread Larry Hall (Cygwin)
Pan ruochen wrote: Hi All, I do as the manual (http://cygwin.com/cygwin-ug-net/using-textbinary.html) says: When redirecting, the Cygwin shells uses rules (a-e). For these shells the relevant value of CYGWIN is that at the time the shell was launched and not that at the time the program is execu

Re: [1.7] output redirection problems with gfortran

2009-06-08 Thread Gustavo Seabra
On Mon, Jun 8, 2009 at 10:56 AM, Dave Korn wrote: > Gustavo Seabra wrote: >> Hi All, >> >> I'm having a strange problem with gfortran here. I am trying to run a >> simple configure program, but it chokes on the fortran compilation. >> The test program it uses is very simple: >> >> $ cat testp.f >>

Re: R: [1.7] output redirection problems with gfortran

2009-06-08 Thread Gustavo Seabra
On Mon, Jun 8, 2009 at 10:21 AM, Marco Atzeri wrote: > > --- Lun 8/6/09, Gustavo Seabra  ha scritto: > >> Da: Gustavo Seabra >> Oggetto: [1.7] output redirection problems with gfortran >> A: cygwin@cygwin.com >> Data: Lunedì 8 giugno 2009, 15:28 >> Hi All, >> >> I'm having a strange problem with gf

Re: How to make cygwin redirect in UNIX mode?

2009-06-08 Thread Larry Hall (Cygwin)
On 06/08/2009, Larry Hall (Cygwin) wrote: > Pan ruochen wrote: > What's wrong then? I'd recommend reading and following the problem reporting guidelines found at the link below for all problem reports. It keeps folks on this list that could help from having to guess about your configuration. >

Re: LFTP issue

2009-06-08 Thread Andrew Schulman
> According to the LFTP documentation, I should be able to do: > > ls | grep > > and > > ls | less > > both of which only return something if I , if I don't > it just sits there. I'm not able to reproduce this behavior in my Cygwin 1.7 installation, with lftp 3.7.6-4. Both of the commands y

Re: [1.7] Cannot read /proc/stat

2009-06-08 Thread Corinna Vinschen
On Jun 8 11:29, Yaakov S wrote: > Running 1.7.0-48 on Windows 7 RC (x64), 'cat /proc/stat' shows nothing > but exits 0. Other /proc files are fine. cygcheck output attached. Confirmed. The reason is that a datastructure on the NT level has another size on 64 bit systems, and the WOW64 layer

Re: [1.7] Cannot read /proc/stat

2009-06-08 Thread Chris Sutcliffe
> (*) Is anybody here actually still using NT4? Since support for 9x is ending in 1.7, shouldn't NT4 support also end? Chris -- Chris Sutcliffe http://emergedesktop.org -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Doc

Re: [1.7] Cannot read /proc/stat

2009-06-08 Thread Andrew Schulman
> (*) Is anybody here actually still using NT4? Anyone still running NT4 has a security disaster on their hands. Not that that's a reason to cut them off of Cygwin... in fact they probably could use the help... but Microsoft EOL'd NT4 years ago, and at some point it seems that Cygwin should do th

Re: [1.7] Cannot read /proc/stat

2009-06-08 Thread Christopher Faylor
On Mon, Jun 08, 2009 at 01:32:33PM -0400, Chris Sutcliffe wrote: >> (*) Is anybody here actually still using NT4? > >Since support for 9x is ending in 1.7, shouldn't NT4 support also end? The decision to stop supporting 9x was mainly due to the desire to use the more advanced API which is not avai

Re: [1.7] Cannot read /proc/stat

2009-06-08 Thread Yaakov (Cygwin/X)
On 08/06/2009 12:14, Corinna Vinschen wrote: Confirmed. The reason is that a datastructure on the NT level has another size on 64 bit systems, and the WOW64 layer doesn't translate the structure into the 32 bit format. The function is unsupported, so that makes sort of sense. I'll create anoth

Re: [1.7] Cannot read /proc/stat

2009-06-08 Thread Dave Korn
Andrew Schulman wrote: >> (*) Is anybody here actually still using NT4? > > Anyone still running NT4 has a security disaster on their hands. Not that > that's a reason to cut them off of Cygwin... in fact they probably could > use the help... but Microsoft EOL'd NT4 years ago, and at some point i

Re: LFTP issue

2009-06-08 Thread Chris Sutcliffe
> I'm not able to reproduce this behavior in my Cygwin 1.7 installation, with > lftp 3.7.6-4.  Both of the commands you describe work normally for me, > without Ctrl-C.  My $CYGWIN is empty, BTW. Doing a little more debugging, and it looks like the issue is related directory size. I can execute '

Re: Installing Cygwin

2009-06-08 Thread Morgan Gangwere
TIOTTL'd (Take It Off The Talk List'd) Run the installer on a machine with the appropriate connection. The installer has an option to "Just Download Packages" Set the download directory somewhere you can move around (I burn it to DVD/CD most of the time) and select the packages you need. Move to th

Re: ClamAv update to 0.95.1 ?

2009-06-08 Thread Reini Urban
Mike Cappella schrieb: Are there plans to update ClamAv to version 0.95.1 ? Yes. I was just very busy. I just got include/w32api/objidl.h:95: error: expected identifier or '(' before string constant so it will need some more hours. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ --

[ANNOUNCEMENT] [1.7] Updated setup-1.7.exe (2.627)

2009-06-08 Thread Corinna Vinschen
I just uploaded another new setup-1.7.exe (2.627) to http://cygwin.com/setup-1.7.exe, which contains the following bug fix: - When running postinstall scripts, start bash so that it ignores any system or user profiles. The original patch applied to 2.625 was inadequate. Please replace your l

[ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-49

2009-06-08 Thread Corinna Vinschen
Hi folks, I just uploaded a new Cygwin 1.7 test release, 1.7.0-49. The list with the changes related to the previous test release 1.7.0-48 is attached below. === IMPORTANT NOTE The former -48 test relea

Bug in $PATH initialization?

2009-06-08 Thread Lennart Borgman
I am trying to get "bash -i" to start up with $PATH having /usr/local/bin:/usr/bin:/bin at the beginning. I believe I need to do this without any init file running so I set the windows Path variable to contain the corresponding windows directories first. So I set Path in cmd.exe with set Pa

cygwin 1.7 beta and msys

2009-06-08 Thread Lennart Borgman
After installing cygwin 1.7 beta I tried to start msys sh (which I have not been doing for a long while). I got the following error: @c:\msys\1.0\bin\sh --login %* AllocationBase 0x0, BaseAddress 0x715B, RegionSize 0x15, State 0x1 c:\msys\1.0\bin\sh.exe: *** Couldn't reserve spac

Re: Bug in $PATH initialization?

2009-06-08 Thread ABCD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Borgman wrote: > I am trying to get "bash -i" to start up with $PATH having > >/usr/local/bin:/usr/bin:/bin > > at the beginning. I believe I need to do this without any init file > running so I set the windows Path variable to contain th

Re: Bug in $PATH initialization?

2009-06-08 Thread Lennart Borgman
On Tue, Jun 9, 2009 at 12:28 AM, ABCD wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Lennart Borgman wrote: >> I am trying to get "bash -i" to start up with $PATH having >> >>    /usr/local/bin:/usr/bin:/bin >> >> at the beginning. I believe I need to do this without any init file >>

Re: Bug in $PATH initialization?

2009-06-08 Thread Mark Harig
From the bash manual (in emacs: M-: (info "(bash) Bash Startup Files")): "When Bash is invoked as an interactive login shell, or as a non-interactive shell with the `--login' option, it first reads and executes commands from the file `/etc/profile', if that file exists. After reading that file, i

Re: Bug in $PATH initialization?

2009-06-08 Thread Lennart Borgman
On Tue, Jun 9, 2009 at 1:05 AM, Mark Harig wrote: > From the bash manual (in emacs: M-: (info "(bash) Bash Startup Files")): > > "When an interactive shell that is not a login shell is started, Bash > reads and executes commands from `~/.bashrc', if that file exists. > This may be inhibited by usin

Re: LFTP issue

2009-06-08 Thread Christopher Faylor
On Mon, Jun 08, 2009 at 02:36:12PM -0400, Chris Sutcliffe wrote: >> I'm not able to reproduce this behavior in my Cygwin 1.7 installation, with >> lftp 3.7.6-4. ?Both of the commands you describe work normally for me, >> without Ctrl-C. ?My $CYGWIN is empty, BTW. > >Doing a little more debugging, a

Re: cygwin 1.7 beta and msys

2009-06-08 Thread Christopher Faylor
On Mon, Jun 08, 2009 at 11:33:42PM +0200, Lennart Borgman wrote: >After installing cygwin 1.7 beta I tried to start msys sh (which I >have not been doing for a long while). I got the following error: > > @c:\msys\1.0\bin\sh --login %* > AllocationBase 0x0, BaseAddress 0x715B, RegionSize 0x150

Re: cygwin 1.7 beta and msys

2009-06-08 Thread Lennart Borgman
Ok, thanks. I have reported it as a mingw bug then. On Tue, Jun 9, 2009 at 2:22 AM, Christopher Faylor wrote: > On Mon, Jun 08, 2009 at 11:33:42PM +0200, Lennart Borgman wrote: >>After installing cygwin 1.7 beta I tried to start msys sh (which I >>have not been doing for a long while). I got the

Re: LFTP issue

2009-06-08 Thread Chris Sutcliffe
>>Doing a little more debugging, and it looks like the issue is related >>directory size.  I can execute 'ls | grep ' in a directory >>with 22 items with no issue at all.  However, when I do a 'ls | grep >>' in a directory that has 1,928 items, that's when I see the >>behaviour I'm experiencing.  I

Remote desktop connection

2009-06-08 Thread Robert Rackl
I just downloaded Cygwin 1.7 Beta and installed it successfully. Now I would like to use it to establish a two-screen remote desktop connection to a remote computer with Win XP. Which package(s) do I need to install? Any other sage advice? Thanks! Robert Rackl r4 -- Unsubscribe info: http

Re: Remote desktop connection

2009-06-08 Thread Andrew DeFaria
Robert Rackl wrote: I just downloaded Cygwin 1.7 Beta and installed it successfully. Now I would like to use it to establish a two-screen remote desktop connection to a remote computer with Win XP. Which package(s) do I need to install? Any other sage advice? How is this related to Cygwin? To e

RE: Remote desktop connection

2009-06-08 Thread Robert Rackl
It seems that with regular RDP, I can only do it using one local screen; if there is a way to use multiple screens please let me know how. A couple of years ago, a friend showed me how to use Cygwin to establish a remote desktop connection using two local screens which worked well until a disk c

Re: OpenSSH server installation error on Windows Vista Business/Ultimate

2009-06-08 Thread Paul August
> Please address your messages to the list. If you wish to hire me, I > prefer silver and gold U.S. coins. :-) I really wish I can afford to hire you:-) > > I am still having trouble to set up OpenSSH server. Following the > > suggestions below, > > Which suggestions? Please copy/ paste/ inde

Re: R: How to make cygwin redirect in UNIX mode?

2009-06-08 Thread Pan ruochen
> you installed cygwin in text mode. > So the output is DOS style, to have UNIX output > you need to install in binmode > > Regards > Marco > I did get one cygwin distribution which can excute scripts both in DOS mode and in UNIX mode and output in UNIX mode. The distribution is released in one in

Re: R: How to make cygwin redirect in UNIX mode?

2009-06-08 Thread Christopher Faylor
On Tue, Jun 09, 2009 at 10:27:27AM +0800, Pan ruochen wrote: >> you installed cygwin in text mode. >> So the output is DOS style, to have UNIX output >> you need to install in binmode > >I did get one cygwin distribution which can excute scripts both in DOS >mode and in UNIX mode and output in UNIX

Re: LFTP issue

2009-06-08 Thread Christopher Faylor
On Mon, Jun 08, 2009 at 09:14:36PM -0400, Chris Sutcliffe wrote: >>>Doing a little more debugging, and it looks like the issue is related >>>directory size. ?I can execute 'ls | grep ' in a directory >>>with 22 items with no issue at all. ?However, when I do a 'ls | grep >>>' in a directory that ha

Cygwin OpenSSH GPL Violation?

2009-06-08 Thread Karl M
http://www.neophob.com/serendipity/ Hi All... I just ran across this site and didn't find any source code offered. Is this a known site? Thanks, ...Karl _ Hotmail® has ever-growing storage! Don’t worry about storage limits.

why /etc/bash.bashrc is not executed when logging in as a domain user?

2009-06-08 Thread Pan ruochen
Hi All, The system wide bashrc file /etc/bash.bashrc is not executed if I log in Windows XP as a domain user; and it is executed if I log in as a local user. Is this mentioned in the manual? PRC Jun 9,2009 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: why /etc/bash.bashrc is not executed when logging in as a domain user?

2009-06-08 Thread Huang Bambo
/etc/bash.bashrc is called by $HOME/.bash_profile like:  17 # source the system wide bashrc if it exists  18 if [ -e /etc/bash.bashrc ] ; then  19   source /etc/bash.bashrc  20 fi Check your $HOME/.bash_profile at first. 2009/6/9 Pan ruochen > > Hi All, > > The system wide bashrc file /etc/bash

Why sh failed 'Process Substitution'?

2009-06-08 Thread Pan ruochen
Hi All, Why sh failed to recognize Process Substitution, even if /bin/sh.exe is a copy of /bin/bash.exe? $cat test.sh #!/bin/bash A="A" B="B" diff <(echo $A) <(echo $B) $sh test.sh a.sh: line 4: syntax error near unexpected token `(' a.sh: line 4: `diff <(echo $A) <(echo $B)' -- Unsubscribe info:

Re: Remote desktop connection

2009-06-08 Thread Mark Geisert
Robert Rackl writes: > It seems that with regular RDP, I can only do it using one local screen; if there is a way to use multiple > screens please let me know how. A couple of years ago, a friend showed me how to use Cygwin to establish a > remote desktop connection using two local screens which wo