That sounds like a good theory, but I don't think it's it. First, I
don't have a .bashrc or .bash_profile (I don't actually use bash on
Windows, it was a diagnostic technique). Second, from the cmd.exe
window, the commands make and rsync are looking for work fine. The path
in cmd.exe and bash are exactly the same, just expressed differently.
I've attached a transcript.
It seems like something is wrong with the system() call, something
low-level like that, but I don't know how to get to the bottom of it.
--Ned.
Dave Korn wrote:
On 01 January 2007 22:24, Ned Batchelder wrote:
Sorry, it's attached.
Another data point: These problems happen when running make or rsync
from a Windows console running cmd.exe. If I start a bash session (just
by running bash in my Windows console), then run "make clean", it works
fine. Same for rsync: run it from cmd.exe, ssh is not found. Run it
from a bash session, and it works fine.
Well, that most likely means it's something in your .bashrc or .bash-profile
that's setting your path in a way that it isn't set naturally in cmd.exe. You
might want to try moving "c:\app\cygwin\bin" earlier in your path, maybe
something's getting confused by those paths with spaces in them.
cheers,
DaveK
--
Ned Batchelder, http://nedbatchelder.com
C:\ned\ezql> rsync -e ssh . [EMAIL PROTECTED]:.
rsync: Failed to exec ssh: No such file or directory (2)
rsync error: error in IPC code (code 14) at
/home/lapo/packaging/tmp/rsync-2.6.6/pipe.c(83)
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/packaging/tmp/rsync-2.6.6/io.c(434)
C:\ned\ezql> ssh --version
ssh: unknown option -- -
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [EMAIL PROTECTED] [command]
C:\ned\ezql> make clean
rm -rf dist
make: rm: Command not found
make: [clean] Error 127 (ignored)
rm -f *.pyc */*.pyc */*/*.pyc */*/*/*.pyc
rm -f *.pyo */*.pyo */*/*.pyo */*/*/*.pyo
rm -f *.bak */*.bak */*/*.bak */*/*/*.bak
rm -f .coverage
make: rm: Command not found
make: [clean] Error 127 (ignored)
make: touch: Command not found
make: *** [clean] Error 127
C:\ned\ezql> rm --version
rm (GNU coreutils) 6.7
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.
C:\ned\ezql>
C:\ned\ezql> bash
bash-3.2$ make clean
rm -rf dist
rm -f *.pyc */*.pyc */*/*.pyc */*/*/*.pyc
rm -f *.pyo */*.pyo */*/*.pyo */*/*/*.pyo
rm -f *.bak */*.bak */*/*.bak */*/*/*.bak
rm -f .coverage
rm ezql\ezql_lexer_lextab.py
rm ezql\ezql_parser_gramtab.py
rm ezql\ezql_lexer.out
rm ezql\ezql_parser.out
rm ezql.tgz
rm MANIFEST
bash-3.2$ rm --version
rm (GNU coreutils) 6.7
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.
bash-3.2$
bash-3.2$ echo $PATH
.:/cygdrive/c/ned/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Pro
gram
Files/Subversion/bin:/cygdrive/c/Python24:/cygdrive/c/Python24/Scripts:/cygdrive/c/dev/bitty/site-packages/django/b
in:/cygdrive/c/Program Files/Common Files/GTK/2.0/bin:/cygdrive/c/Program
Files/Common Files/Adobe/AGL:/cygdrive/c/Progr
am Files/QuickTime/QTSystem/:/usr/bin:"c:/Program Files/MySQL/MySQL Server
5.0/bin":/cygdrive/c/ned/py/stellated/scripts
bash-3.2$ exit
exit
C:\ned\ezql> path
PATH=.;c:\ned\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Subversion\bin;c:\Python24;c:
\Python24\Scripts;c:\dev\bitty\site-packages\django\bin;C:\Program Files\Common
Files\GTK\2.0\bin;;C:\Program Files\Comm
on Files\Adobe\AGL;C:\Program
Files\QuickTime\QTSystem\;c:\app\cygwin\bin;"c:\Program Files\MySQL\MySQL
Server 5.0\bin";
c:\ned\py\stellated\scripts
C:\ned\ezql>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/