X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.8 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: <26084235.post@talk.nabble.com>
References: <26084169.post@talk.nabble.com> <26084235.post@talk.nabble.com>
Date: Tue, 27 Oct 2009 15:53:01 -0500
Message-ID: <4a89b8680910271353m71610026ib92e0fa04bf1d63b@mail.gmail.com>
Subject: Re: Bash - IF Statement
From: paul.hermeneutic@gmail.com
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, Oct 27, 2009 at 15:15, briglass111 <briglass@gmail.com> wrote:
>
> my friend pointed out that the problem is that there needs to be extra
> spaces:
>
> [ "$T" = "y" ];
>
> good job, bash

I am not sure your comment is praising or bemoaning the bash shell.

The shell interpreter needs a space after the square bracket in order
to distinguish this conditional test from an indexed or associative
array subscript.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

