I have a doubt regarding the conditional statements in shell scripting


In the highlighted portion of the above image, in the true condition double quotes are used but in the false condition they are not. Please clarify as the lecturer specifies that double quotes are not to be used while patter matching.

Which lecture is this, and when is it in the lecture? A link to the lecture and also the time code will help me figure out what exactly he’s saying. As far as I know, strings would need to be quoted in all of these contexts.