Having problems with bash

Dave Korn dave.korn.cygwin@googlemail.com
Thu Jan 29 23:08:00 GMT 2009


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/



More information about the Cygwin mailing list