> will be surprised that [[ "foo" == "f*" ]] does pattern matching
It will not do pattern matching, because you quoted the right-hand side.
... ... okay, now I extremely object to [[ "foo" == f* ]] not doing globbing and doing pattern matching. But, I guess Google folks have experience that this is non-confusing?
Re:Shell Style Guide
by your-nanny on Tuesday May 15, 2018 @09:40AM
(#17073818)
Which is totally fucking indane
> One thing I'm curious about is whether Google machines have followed Debian etc. in making /bin/sh a faster non-bash shell, or if /bin/sh is bash.
Since the guide says "Executables must start with #!/bin/bash" it doesn't really matter.
Same here. Dropping non-bash support just for [[ ... ]] over [ ... ] seems a little odd.
One thing I'm curious about is whether Google machines have followed Debian etc. in making /bin/sh a faster non-bash shell, or if /bin/sh is bash.