delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 DOT post AT talk DOT nabble DOT com> <26084235 DOT post AT talk DOT nabble DOT com> |
Date: | Tue, 27 Oct 2009 15:53:01 -0500 |
Message-ID: | <4a89b8680910271353m71610026ib92e0fa04bf1d63b@mail.gmail.com> |
Subject: | Re: Bash - IF Statement |
From: | paul DOT hermeneutic AT gmail DOT com |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
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 |
On Tue, Oct 27, 2009 at 15:15, briglass111 <briglass AT gmail DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |