Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 30 Dec 2004 22:36:42 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com cc: Andy Subject: Re: Binary operator expected??? In-Reply-To: <6.2.0.14.0.20041230194809.04d5ae30@pop.prospeed.net> Message-ID: References: <6 DOT 2 DOT 0 DOT 14 DOT 0 DOT 20041230194809 DOT 04d5ae30 AT pop DOT prospeed DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 .lst.gz > file in /etc/setup. The easiest way is to look at the output of "cygcheck -l ". > >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 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/