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 Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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