which command fails

2002-12-19 Thread J S
Hi,

Since I upgraded cygwin I can't use the which command. It keeps saying:

$ which /usr/bin/ls
/usr/bin/ls: Command not found.


My path appears to be OK:

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:.:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/wmaker/bin:/cygdriv
e/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/ora8i/bin:/cygdrive
/c/Program 
Files/Oracle/jre/1.1.7/bin:/cygdrive/c/PROGRA~1/E!PC:/cygdrive/c/ACE/rdbms32/bin:/cygdriv
e/c/Program Files/Attachmate/E!E2K/:/cygdrive/c/PROGRA~1/ULTRAE~1

The which also looks OK, and is the same as the which in the old cygwin I 
had:

$ which
usage: which [-a] command...

$ ls -l which
-rwx--1 544  105134608 Nov 15  2001 which


Any ideas what could be going wrong?

JS.


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



Re: which command fails

2002-12-19 Thread Sylvain Petreolle
correct syntax of which is which ls, remember that the goal of which
is to show the  path of the command you give as a parameter.

see man which.
 --- J S [EMAIL PROTECTED] a écrit :  Hi,
 
 Since I upgraded cygwin I can't use the which command. It keeps
 saying:
 
 $ which /usr/bin/ls
 /usr/bin/ls: Command not found.
 
 
 My path appears to be OK:
 
 $ echo $PATH

/usr/local/bin:/usr/bin:/bin:.:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/wmaker/bin:/cygdriv

e/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/ora8i/bin:/cygdrive
 /c/Program 

Files/Oracle/jre/1.1.7/bin:/cygdrive/c/PROGRA~1/E!PC:/cygdrive/c/ACE/rdbms32/bin:/cygdriv
 e/c/Program Files/Attachmate/E!E2K/:/cygdrive/c/PROGRA~1/ULTRAE~1
 
 The which also looks OK, and is the same as the which in the old
 cygwin I 
 had:
 
 $ which
 usage: which [-a] command...
 
 $ ls -l which
 -rwx--1 544  105134608 Nov 15  2001 which
 
 
 Any ideas what could be going wrong?
 
 JS.
 
 
 _
 Add photos to your messages with MSN 8. Get 2 months FREE*. 
 http://join.msn.com/?page=features/featuredemail
  

=
Sylvain Petreolle
[EMAIL PROTECTED] 
Fight against Spam ! http://www.euro.cauce.org/en/index.html
ICQ #170597259

Don't think you are. Know you are. Morpheus in Matrix, chapter 15.

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



Re: which command fails

2002-12-19 Thread J S




Sorry I copied the wrong line. This is what I'm getting even after doing a 
reinstall:


u752359@A217447D ~
$ which ls
ls: Command not found.


correct syntax of which is which ls, remember that the goal of which
is to show the  path of the command you give as a parameter.

see man which.
 --- J S [EMAIL PROTECTED] a écrit :  Hi,

 Since I upgraded cygwin I can't use the which command. It keeps
 saying:

 $ which /usr/bin/ls
 /usr/bin/ls: Command not found.


 My path appears to be OK:

 $ echo $PATH

/usr/local/bin:/usr/bin:/bin:.:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/wmaker/bin:/cygdriv

e/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/ora8i/bin:/cygdrive
 /c/Program

Files/Oracle/jre/1.1.7/bin:/cygdrive/c/PROGRA~1/E!PC:/cygdrive/c/ACE/rdbms32/bin:/cygdriv
 e/c/Program Files/Attachmate/E!E2K/:/cygdrive/c/PROGRA~1/ULTRAE~1

 The which also looks OK, and is the same as the which in the old
 cygwin I
 had:

 $ which
 usage: which [-a] command...

 $ ls -l which
 -rwx--1 544  105134608 Nov 15  2001 which


 Any ideas what could be going wrong?

 JS.


 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail


=
Sylvain Petreolle
[EMAIL PROTECTED]
Fight against Spam ! http://www.euro.cauce.org/en/index.html
ICQ #170597259

Don't think you are. Know you are. Morpheus in Matrix, chapter 15.

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus