This is the mail archive of the cygwin 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: Binary operator expected???

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
> <>.  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:
> <>

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

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/") and that will be the file
that contains the unquoted variable.

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Problem reports:

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