Having problems with bash

View: New views
3 Messages — Rating Filter:   Alert me  

Having problems with bash

by syllk :: Rate this Message:

| View Threaded | Show Only this Message

I am hoping that there is a simple fix to this. I am new to cygwin and tinyos and when running cygwin it immediately runs with this first line 'bash: [: /home/Chris: binary operator expected'. With this problem I seem to get errors whenever I try to 'make' anything.

If anyone knows how to fix this I would much appreciate it.

Re: Having problems with bash

by Christopher Faylor-8 :: Rate this Message:

| View Threaded | Show Only this Message

On Wed, Jan 28, 2009 at 08:08:24AM -0800, syllk wrote:
>I am hoping that there is a simple fix to this.  I am new to cygwin and
>tinyos and when running cygwin it immediately runs with this first line
>'bash: [: /home/Chris: binary operator expected'.  With this problem I
>seem to get errors whenever I try to 'make' anything.
>
>If anyone knows how to fix this I would much appreciate it.

If this really is a distribution that you've downloaded from the Cygwin
site then please provide the details asked for here:

http://cygwin.com/problems.html

If you got this from the tinyos.net site (which may be third-party
repackagers of Cygwin) then ask them for help.  We don't support Cygwin
packages provided by other sites here.

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/


Re: Having problems with bash

by Dave Korn-6 :: Rate this Message:

| View Threaded | Show Only this Message

syllk wrote:
> I am hoping that there is a simple fix to this. I am new to cygwin and tinyos
> and when running cygwin it immediately runs with this first line 'bash: [:
> /home/Chris: binary operator expected'. With this problem I seem to get
> errors whenever I try to 'make' anything.
>
> If anyone knows how to fix this I would much appreciate it.

  The simple way to debug Cygwin bash startup problems:

1. Open cmd.exe shell
2. "cd C:\cygwin\bin" or whereever the /bin dir has ended up when you've
installed it.
3. "bash --login -i -x"

  Now bash will print out to the screen all the startup scripts as it
executes them.  Once you've seen what the failing code is, you can figure out
whether it's in /etc/profile or ~/.bashrc or ~/.bash_profile and figure out
how to fix it.

  Are there spaces in your Windows username?

    cheers,
      DaveK

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