This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bash - IF Statement


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]