This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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