In the last year or so I read an article thoroughly investigating whether the idiom
[ x$foo = x ]
is still needed in modern-day /bin/sh, concluding that it is not if you quote the variable. But it's surprisingly hard to search for. Does anyone happen to have a link lying around?
Edit: found it! https://www.vidarholen.net/contents/blog/?p=1035