Mail Archives: cygwin/2004/12/30/22:36:56
On Thu, 30 Dec 2004, Larry Hall wrote:
> At 05:58 PM 12/30/2004, you wrote:
> >So after about 7 attempts to install cygwin from the web, it finally
> >got all the way through and it's really cool. A couple quick questions,
> >how do I know which commands are available to me (example, I installed
> >the tetris clone, and have no idea how to start it because I cant find
> >the name of the command that starts it)
>
> Probably the easiest thing to do is look it up the package contents at
> <http://cygwin.com/packages/>. That should provide some clues. Or you
> can get the same information from 'zcat'ing the <package name>.lst.gz
> file in /etc/setup.
The easiest way is to look at the output of "cygcheck -l <package name>".
> >also, at startup, at the top of the bash shell it says "binary operator
> >expected" is that normal, or do I have a problem on my hands? The shell
> >still works and did I mention that it's really cool?
>
> Yes, you did mention. ;-) And that it is.
>
> You'd need to provide some details for this because, no, that's not
> normal. Please read and follow:
>
> <http://cygwin.com/problems.html>
Exactly. Pay especial attention to the bit about attaching the output of
"cygcheck -svr" on your system.
However, this is also most likely not the full error message. It probably
looks like "bash: line N: [: /cygdrive/c/Documents: binary operator
expected". At a guess, one of the /etc/profile.d scripts is using an
unquoted variable in a test. The best way to track this down is to try
running
bash --login -x -c "echo Hi" 2>&1 | less
and searching for "binary operator expected". The line printed right
before the message is the culprit. It'll likely look like "++ '[' -d
/cygdrive/c/Program Files/Something ']'".
Then scroll backwards to the line that starts with a '+' (it'll probably
look like "+ . /etc/profile.d/something.sh") and that will be the file
that contains the unquoted variable.
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
--
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/
- Raw text -