Operating System - Linux
1753604 Members
6418 Online
108797 Solutions
New Discussion юеВ

Re: Problem with string Comparison

 
SOLVED
Go to solution
mougli
Occasional Advisor

Re: Problem with string Comparison

Thanks Dennis. It worked.

Regards..
mougli
Occasional Advisor

Re: Problem with string Comparison

Thanks Dennis. It worked. But is there something missing without the quotes??

Regards..
Dennis Handly
Acclaimed Contributor

Re: Problem with string Comparison

>But is there something missing without the quotes??

One day I was fiddling with a script and it had [[ ]] instead of [ ] and I didn't know why it failed. I assumed it was string comparison. But it is pattern matching and by experience, it doesn't allow quotes. Probably assumes the they are part of the pattern? That's why I warned you.

 

If you want to quote an embedded space, use "\".