Re: subroutine error for Cygwin bash 3.2.9(11)-release

2007-02-08 Thread Matt Wozniski
On 2/9/07, Jim Guojun wrote: Has anyone seen the same problem? bash-3.2$ sh -x start.sh + $'\r' : command not found 'tart.sh: line 6: syntax error near unexpected token ` 'tart.sh: line 6: `func() The difference between machines is probably in using text mounts vs. binary mounts. On the machi

subroutine error for Cygwin bash 3.2.9(11)-release

2007-02-08 Thread Jim Guojun
Install the latest Cygwin to A number XP machines with the same installation procedure, but some machines work fine and some did not. The shell does not like the subrutine in a script file (See below). Even the error output is strange -- s is replaced by a <'>. There is no ' symbol in the script

Re: stupid spaces in environment vars

2007-02-08 Thread Brian Dessent
David Bear wrote: > >> prodir=`cygpath $USERPROFILE` > > > > Should be: > > > > prodir=$(cygpath "$USERPROFILE") > src=`cygpath $USERPROFILE` Quotes! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:

Re: stupid spaces in environment vars

2007-02-08 Thread Larry Hall (Cygwin)
Charles D. Russell wrote: Larry Hall (Cygwin) wrote: David Bear wrote: I would like to have used something like cd $USERPROFILE in a bash script but since windows insists on putting spaces in names, this seems impossible. I know this is a consistent issue with cygwin. There reall

Re: stupid spaces in environment vars

2007-02-08 Thread Matt Wozniski
This is not a bug, you're just not listening to what people are telling you. As Brian said, "In general whenever you have a variable that might contain spaces you just need to quote it." SO... On 2/8/07, David Bear wrote: thanks you very much. However, there is still something that doesn't work

Matlab Hangs at startup

2007-02-08 Thread Dr Theodore Martin
Hi, I'm using Cygwin to run Matlab 6.5 remotely off a unix server. I'm using the ssh command to connect to the server. Here is a good tutorial on what SHOULD happen when doing this, which I have been following: http://remus.rutgers.edu/~xmi/cs323/remote_matlab.htm I am able to run Matlab if I

Re: stupid spaces in environment vars

2007-02-08 Thread David Bear
Brian Dessent wrote: > David Bear wrote: > >> Okay, the problem is in quoting in shell scripts, I think. >> >> Here's an example: >> #!/usr/bin/bash >> curdir=`pwd` >> echo $curdir >> prodir=`cygpath $USERPROFILE` > > Should be: > > prodir=$(cygpath "$USERPROFILE") > >> echo $prodir >> cd $pr

Re: No manual entry for tar?

2007-02-08 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Eric Blake wrote: > Normal. The upstream tar maintainer doesn't go to the efforts of creating > one in his tarball, so I don't put forth any additional effort to make one > myself. The GNU Coding Standards recommend the info format ('info tar') > o

Re: stupid spaces in environment vars

2007-02-08 Thread Brian Dessent
David Bear wrote: > Okay, the problem is in quoting in shell scripts, I think. > > Here's an example: > #!/usr/bin/bash > curdir=`pwd` > echo $curdir > prodir=`cygpath $USERPROFILE` Should be: prodir=$(cygpath "$USERPROFILE") > echo $prodir > cd $prodir Should be: cd "$prodir" > cd /cygdriv

Re: stupid spaces in environment vars

2007-02-08 Thread David Bear
Larry Hall (Cygwin) wrote: > David Bear wrote: >> I would like to have used something like >> >> cd $USERPROFILE >> >> in a bash script but since windows insists on putting spaces in names, >> this seems impossible. >> >> I did find a usecase where the spaces in c:\Documents and >> Settings\use

Re: Download Cygwin???

2007-02-08 Thread Charles D. Russell
* Brian Keener wrote: - Brian D wrote: ?Is there any way that I can d/l Cygwin, with the packages that I need, at my workplace, then write a CD-R and take it home for installation??? ?Comments or advice??? Sur

Re: Download Cygwin???

2007-02-08 Thread Brian Keener
Brian D wrote: >  Is there any way that I can d/l Cygwin, with the packages that I need, at my > workplace, then write a CD-R and take it home for installation???  Comments or > advice??? Sure - don't see why not - when you run the setup.exe program select the option for download only and then pl

Download Cygwin???

2007-02-08 Thread Brian D
Hi, ...I live in Fox, Alaska. High-speed internet is not an option at this point. Trying to install Cygwin via the usual setup.exe method fails because my internet connection likes to have problems far too many times during a huge download... Is there any way that I can d/l Cygwin, with th

Re: ld not found

2007-02-08 Thread Bill Ross
Sorry. Problem repeated for convenience and cygcheck output attached. Bill - I have ld.exe in /cygwin/bin and /cygwin/usr/i686-pc-cygwin/bin, also made sure cygwin/usr/lib/gcc/i686-pc-cygwin/3.4.4/ exists. But (

Re: ld not found

2007-02-08 Thread René Berber
Bill Ross wrote: > I have ld.exe in /cygwin/bin and /cygwin/usr/i686-pc-cygwin/bin, also made > sure cygwin/usr/lib/gcc/i686-pc-cygwin/3.4.4/ exists. But (running from ant): > > [exec] /usr/bin/gcc -D_WIN32 -o > /cygdrive/F/export_home/wr152514/1.1-37/client_c/../build/client_c/build_Win32/mkme

Re: ld not found

2007-02-08 Thread Markus Schönhaber
Bill Ross wrote: > Christopher Faylor wrote: > >> Problem reports: http://cygwin.com/problems.html > > Lots of clues there, but nothing that obviously relates to my problem. > E.g. searched archives for ld.exe, ld, and compile. Did you actually read the page cgf pointed you to - especially t

using ssmtp to send mail from Intel cygwin platform

2007-02-08 Thread oryann9
Hello...: ) I am having issues sending mail from within a perl script on an intel using the cygwin platform; the code is simply not sending email or not sending the text in the file. CYGWIN_NT-5.1 laptop 1.5.23(0.156/4/2) 2006-12-19 10:52 i686 Cygwin snippet... qx(/usr/sbin

Re: ld not found

2007-02-08 Thread Bill Ross
Christopher Faylor wrote: On Thu, Feb 08, 2007 at 02:09:57PM -0800, Bill Ross wrote: I have ld.exe in /cygwin/bin and /cygwin/usr/i686-pc-cygwin/bin, also made sure cygwin/usr/lib/gcc/i686-pc-cygwin/3.4.4/ exists. But (running from ant): [exec] /usr/bin/gcc -D_WIN32 -o /cygdrive/F/export

Re: ld not found

2007-02-08 Thread Christopher Faylor
On Thu, Feb 08, 2007 at 02:09:57PM -0800, Bill Ross wrote: >I have ld.exe in /cygwin/bin and /cygwin/usr/i686-pc-cygwin/bin, also >made sure cygwin/usr/lib/gcc/i686-pc-cygwin/3.4.4/ exists. But (running >from ant): > > [exec] /usr/bin/gcc -D_WIN32 -o >/cygdrive/F/export_home/wr152514/1.1-37/

ld not found

2007-02-08 Thread Bill Ross
I have ld.exe in /cygwin/bin and /cygwin/usr/i686-pc-cygwin/bin, also made sure cygwin/usr/lib/gcc/i686-pc-cygwin/3.4.4/ exists. But (running from ant): [exec] /usr/bin/gcc -D_WIN32 -o /cygdrive/F/export_home/wr152514/1.1-37/client_c/../build/client_c/build_Win32/mkmerge /cygdrive/F/ex

Re: pasting into an ssh connection painfully slow... sometimes

2007-02-08 Thread DePriest, Jason R.
On 2/8/07, Lev Bishop wrote: On 2/8/07, Lev Bishop wrote: > When I get some time I'll redo those patches against the latest cygwin > version. In the meantime, if netscreen provides a sysctl > net.inet.tcp.ackonpush or some way to disable delayed acks, then that > might help you. Or you could t

RE: Re: stupid spaces in environment vars

2007-02-08 Thread Buchbinder, Barry \(NIH/NIAID\) [E]
Andrew Schulman wrote on Thursday, February 08, 2007 11:36 AM: >> BAD: >> alias cdp=cd\ "$USERPROFILE" >> +alias 'cdp=cd C:\Documents and Settings\me' >> >> alias cdp="cd $USERPROFILE" >> +alias 'cdp=cd C:\Documents and Settings\me' >> >> GOOD: >> alias cdp="cd \"$USERPROFILE\"" >> + alias 'cdp=c

Using a DLL built with cygwin in VC++

2007-02-08 Thread Papasha
Hello, I'm trying to use a DLL created with cygwin in my VC++ project. I have a DLL file and I need to create .lib in order to use the DLL in VC++, I use the following command sequence: dlltool --export-all-symbols --output-def mylib.def mylib.dll #cygwin's dlltool lib /DEF:mylib.def /OUT:mylib

Re: stupid spaces in environment vars

2007-02-08 Thread Charles D. Russell
Charles Russell wrote: OK from the system prompt, but I've never found a way to quote this in a shell script. So I make symlinks to $HOME/my/docs/, my/pics/, my/mus to avoid those infernal microsoft spaces. __ Pardon the idiocy. But the symlinks do simplify things. -- Unsubs

Re: stupid spaces in environment vars

2007-02-08 Thread Andrew DeFaria
How about: $ mount -bsf C:/Documents\ and\ Settings /home ;-) -- Andrew DeFaria I didn't fight my way to the top of the food chain to be a vegetarian. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.ht

Re: stupid spaces in environment vars

2007-02-08 Thread Charles D. Russell
* //Larry Hall (Cygwin) wrote: David Bear wrote: I would like to have used something like cd $USERPROFILE in a bash script but since windows insists on putting spaces in names, this seems impossible. I did fi

Re: accessing db2 v9 from cygwin shell

2007-02-08 Thread Hans Horn
Just in case anybody happens to care: I found a nice solution to this on http://groups.google.ca/group/comp.databases.ibm-db2/browse_thread/thread/f0a561a079408485/dd5fbeba774bf9fe#dd5fbeba774bf9fe, basically exporting export DB2CLP=**$$** during bash startup does the trick! solong, H. "Hans

Re: stupid spaces in environment vars

2007-02-08 Thread Andrew Schulman
> BAD: > alias cdp=cd\ "$USERPROFILE" > +alias 'cdp=cd C:\Documents and Settings\me' > > alias cdp="cd $USERPROFILE" > +alias 'cdp=cd C:\Documents and Settings\me' > > GOOD: > alias cdp="cd \"$USERPROFILE\"" > + alias 'cdp=cd "C:\Documents and Settings\me"' > > alias cdp='cd "$USERPROFILE"' > +

Re: pasting into an ssh connection painfully slow... sometimes

2007-02-08 Thread Lev Bishop
On 2/8/07, Lev Bishop wrote: When I get some time I'll redo those patches against the latest cygwin version. In the meantime, if netscreen provides a sysctl net.inet.tcp.ackonpush or some way to disable delayed acks, then that might help you. Or you could try changing on your cygwin box the re

RE: Writing to MVFS (clearcase) volumes from remote ssh

2007-02-08 Thread Benedict, Michael
Sorry for the slow reply. Larry, Yep, tried both key-based and password authentication :( Max, Everything appears the same, like `whoami`. Do you have a better tool for determining my userid/group memebership, etc.? I have attached the environmental differences. The only thin

Re: stupid spaces in environment vars

2007-02-08 Thread Frodak
--- "Larry Hall (Cygwin)" wrote: > David Bear wrote: > > I would like to have used something like > > > > cd $USERPROFILE > > > > in a bash script but since windows insists on > putting spaces in names, this > > seems impossible. > > > > I did find a usecase where the spaces in > c:\Documents

Re: weird seg. fault related to fhandler_pipe::get_guard()

2007-02-08 Thread Corinna Vinschen
On Feb 7 14:12, winner wei wrote: > Building was a success, but when run it I got a segmentation fault > immediately while executing function C (B was fine, and nothing was > run in C). The code has no any problems on linux, solaris and irix. This is no indication whatsoever. I have code which r

Re: ar 'unable to rename... Invalid cross-device link'

2007-02-08 Thread Corinna Vinschen
On Feb 7 14:59, Matthew Woehlke wrote: > Corinna Vinschen wrote: > >I took the time to install and configure SUA on my R2 server. Then I > >tried to rename a file, where the target file name already exists: > >[snip test program] > >So it WJFFM. There must be a problem in your setup. > > Ok, tr

Re: sshd exits during login attempt on WinXP 2003 x64 -- even with sshd running as service

2007-02-08 Thread Corinna Vinschen
On Feb 7 13:44, Brian Kasper wrote: > Thanks for responding, Corinna. I obviously wasn't clear in my original > post -- ssh login attempts to my Win2003 x64 system running Cygwin sshd > as a service always fail, which is why I tried running sshd from the > command prompt as a test. > [...] > /var