(:) in the above operators can be omitted. Doing so changes the behavior of the operator to test only... return the rest.
These can be hard to remember, so here's a handy mnemonic device: # matches the fro... string manipulations on their arguments. You'll also see many uses of sed and awk or perl -e to perfor... r this can be overkill -- and a little ungainly.
So, bash (which long ago abandoned the "small is bea
&2`" ] # (no output)
# ^^^^^^^ False condition. So far, everything as expected.
# However ...
[ 1 -... 1>&2`" ] # true
# ^^^^^^^ False condition. So, why "true" output?
# Is it because both conditi