4 ms·
> that is also quote safe Depends on what you mean by quote safe. Quotes aren't redundant: $ d='*' $ [[ foo = $d ]]; echo $? 0 $ [[ foo = "$d" ]]; ech
by jolmg 6y ago
> that is also quote safe
Depends on what you mean by quote safe. Quotes aren't redundant:
$ d='*'
$ [[ foo = $d ]]; echo $?
0
$ [[ foo = "$d" ]]; echo $?
1