delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/29/15:28:10

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <21708788.post@talk.nabble.com>
References: <21708788 DOT post AT talk DOT nabble DOT com>
Date: Thu, 29 Jan 2009 20:27:54 +0000
Message-ID: <2ca21dcc0901291227x7914a883qec476520f09e3235@mail.gmail.com>
Subject: Re: Having problems with bash
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019