LucasLarson/dotfiles

why “move constant to left side of `=` in shell comparison” at bbcd76e?

LucasLarson opened this issue · 0 comments

Why, in bbcd76e, did the constant move to the left side of the comparison, when that doesn’t appear to match common scripting practice?


before:

if [[ "$(uname)" == Darwin ]]; then

after:

if [[ Darwin == "$(uname)" ]]; then