RE: Path Statement Not Being Evaluated by Bash in Cygwin

2005-07-05 Thread Reid Thompson
Ross MacGillivray wrote:
 I am trying to test KDE 3.4 (and Qt 3.3) on Cygwin.
 
 I have installed the additional packages needed for KDE 3.4
 and I even did a complete re-install of all packages to
 ensure that I have a clean system.
 
 when I start bash and enter 'echo $path'.  This is the path statement
 returned. 
 
 C:\cygwinbash
 bash-2.05b$ pwd
 /
 bash-2.05b$ echo $path
 /usr/bin:/usr/X11R6/bin:/opt/qt/3.3/bin:/cygdrive/c/PROGRA~1/C
 OMMON~1/GTK/2.0/bi
 n:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c
 /WINDOWS/System32/ Wbem:/cygdrive/c/Program Files/Support 
 Tools/:/cygdrive/c/Program Files/Microsof t Visual Studio
 8/Common7/IDE:/cygdrive/c/Program Files/Microsoft Visual
 Studio 8/VC/bin:/usr/bin:/cygdrive/c/Program Files/Microsoft
 Platform SDK/Include:/cygd rive/c/Program Files/Microsoft
 Platform SDK/Bin:/cygdrive/c/Program Files/Micros oft Visual
 Studio 8/VC/lib:/cygdrive/e/livemedia-unix2/live/testProgs:/cygdrive/
 c/Program Files/OpenVPN/bin:. 
 
 When I run my startup script for KDE.
 
 bash-2.05b$ cd home
 bash-2.05b$ cd Ross MacGillivray
 bash-2.05b$ ls
 startkde
 bash-2.05b$ cat startkde
 usr/bin/echo $path
 usr/sbin/cygserver 
 export CYGWIN=server
 export DISPLAY=127.0.0.1:0
 usr/X11R6/bin/XWin -multiwindow 
 usr/X11R6/bin/xwinclip 
 usr/X11R6/bin/xhost +
 export SHELL=/bin/bash
 opt/kde3.4/bin/kdeinit +kicker 
 
 I get two windows error messages report that two dll's cannot
 be found. The dll's are:  cygX11-6.dll and cyggt-mt-3.dll.
 
 One DLL is in /usr/X11R6/bin and one DLL is in /opt/qt/3.3/bin
 
 Both paths are in the path statement above.
 
 What's going on here?
 
 /Ross MacGillivray

Not sure how you've got things setup, but `echo $path`  should result in
an empty return statement.  the variable is PATH not path, case
sensitive.  

reid

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



RE: Path Statement Not Being Evaluated by Bash in Cygwin

2005-07-05 Thread Eric Blake
  when I start bash and enter 'echo $path'.  This is the path statement
  returned. 
 
 Not sure how you've got things setup, but `echo $path`  should result in
 an empty return statement.  the variable is PATH not path, case
 sensitive.  
 

Or maybe you are thinking of  tcsh syntax, where $path is a
space-separated synonym for the colon-separated $PATH.  tcsh
syntax doesn't work in bash (hopefully, it is obvious why not),
and your listing had colons, so even if you were to use tcsh with
that $path you would have problems.

--
Eric Blake
cygwin bash maintainer



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



Re: Path Statement Not Being Evaluated by Bash in Cygwin

2005-07-05 Thread Ross MacGillivray
Ross MacGillivray ross_macgillivray at yahoo.ca writes:

 
 
 I am trying to test KDE 3.4 (and Qt 3.3) on Cygwin.
 
 I have installed the additional packages needed for 
 KDE 3.4 and I even did a
 complete re-install of all packages to ensure that I have a clean system.
 
 when I start bash and enter 'echo $path'.  This is the path statement 
 returned.
 
 C:\cygwinbash
 bash-2.05b$ pwd
 /
 bash-2.05b$ echo $path
 /usr/bin:/usr/X11R6/bin:/opt/qt/3.3/bin:/cygdrive/c/PROGRA~1/COMMON~1/GTK/2.0
 snip
 
 When I run my startup script for KDE.
 
  snip
 
 I get two windows error messages report that two dll's cannot be found.
 The dll's are:  cygX11-6.dll and cyggt-mt-3.dll.
 
 One DLL is in /usr/X11R6/bin and one DLL is in /opt/qt/3.3/bin
 
 Both paths are in the path statement above.
 
 What's going on here?
 
 /Ross MacGillivray
 
 

Thank you for the two quick replies.

I had the following line in .bashrc

path=/usr/bin:/usr/X11R6/bin:/opt/qt/3.3/bin:$PATH

(note the small letters at the beginning of the statement - CAPITALS
ROSS, CAPITALS!)

Anyway, thank you for the help.

/Ross


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