This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problems with man


Hi,

>> 
> >> Ok, something else to try.  From sh, try:
> >> 
> >> $ d:/cygwin/bin/cat /etc/passwd
> >> $ /cygdrive/d/cygwin/bin/cat /etc/passwd
> >> 
> >> Does either command work?
> >>
> >Nope:
> >duane@USD22C821 ~
> >$ sh
> >\[\033]0;\w\007
> >\033[32m\]\u@\h \[\033[33m\w\033[0m\]
> >$ d:/cygwin/bin/cat /etc/passwd
> >d:/cygwin/bin/cat: not found
> >\[\033]0;\w\007
> >\033[32m\]\u@\h \[\033[33m\w\033[0m\]
> >$ /cygdrive/d/cygwin/bin/cat /etc/passwd
> >/cygdrive/d/cygwin/bin/cat: not found
> >\[\033]0;\w\007
> >\033[32m\]\u@\h \[\033[33m\w\033[0m\]
> >
> >But wait! When I try:
> >$ cat /etc/passwd
> >SYSTEM:*:18:544:,S-1-5-18::
> >Administrators:*:544:544:,S-1-5-32-544::
> >.
> >.
> >.
> >duane:unused_by_nt/2000/xp:11054:10513:duane,U-LUNARCORP\duan
> e,S-1-5-21-
> >25853599
> >-59532045-941767090-1054:/cygdrive/c/DOCUME~1/duane:/bin/bash
> >\[\033]0;\w\007
> >\033[32m\]\u@\h \[\033[33m\w\033[0m\]
> >$
> >
> >What is going on? It seems as if ash _doesn't_ like the 
> _full_ path (or
> >one beginning with a /), but knows where to find cat and friends (ls,
> >pwd, ...)
> 
> What does "which cat" say?
>

>From bash:

duane@USD22C821 ~
$ which cat
/usr/bin/cat

duane@USD22C821 ~
$ sh
\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ which cat
/usr/bin/cat
\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ /usr/bin/cat /etc/passwd
/usr/bin/cat: not found
\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/MS/SMS/CORE/BIN:/cygdrive
/c/WINNT
/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/
PROGRA~1
/COMMON~1/ADAPTE~1/System:/cygdrive/c/SQL60/BINN:/cygdrive/c/SQL60/DLL:/
cygdrive
/c/PROGRA~1/MICROS~3/Common/Tools/WinNT:/cygdrive/c/PROGRA~1/MICROS~3/Co
mmon/MSD
ev98/Bin:/cygdrive/c/PROGRA~1/MICROS~3/Common/Tools:/cygdrive/c/PROGRA~1
/MICROS~
3/VC98/bin:/cygdrive/c/jdk1.3.1_02/bin:/cygdrive/c/PROGRA~1/COMMON~1/GTK
/2.0/lib
:/cygdrive/d/Perl/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygd
rive/c/W
INNT/System32/Wbem:/cygdrive/c/PROGRA~1/COMMON~1/ADAPTE~1/System:/cygdri
ve/c/SQL
60/BINN:/cygdrive/c/SQL60/DLL:/usr/X11R6/bin
\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$

???? Seems strange...

Thanks,
Duane
 
> cgf
> 
> --
> 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/
> 

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]