lhunath 1285318243 learn In bash; consistently use [[ .. ]] to test strings or files and (( .. )) to test numbers or arithmetics. Do *NOT* use [ .. ] in bash, *only* in sh. See http://mywiki.wooledge.org/BashSheet#Tests lhunath 1300443331 forget lhunath 1300443428 learn Consistently use [[ .. ]] to test strings or files, (( .. )) to test numbers or arithmetics and ''if ..'' to test commands. Do *NOT* use [ .. ] in bash, *only* in sh. See http://mywiki.wooledge.org/BashSheet#Tests e36freak 1304275280 forget e36freak 1304275287 learn Consistently use [[ .. ]] to test strings or files, (( .. )) to test numbers or arithmetics and ''if ..'' to test commands. Do *NOT* use [ .. ] in bash, *only* in sh. See http://mywiki.wooledge.org/BashSheet#Tests and http://mywiki.wooledge.org/BashGuide/TestsAndConditionals ormaaj 1351630985 forget ormaaj 1351637177 learn http://mywiki.wooledge.org/tests e36freak 1351800584 forget e36freak 1351800588 learn Consistently use [[ .. ]] to test strings or files, (( .. )) to test numbers or arithmetics and ''if COMMAND'' to test exit status. Do *NOT* use [ .. ] in bash, *only* in sh. See http://mywiki.wooledge.org/tests and http://mywiki.wooledge.org/BashGuide/TestsAndConditionals. Also see http://mywiki.wooledge.org/BashFAQ/031 for the difference between [ and [[ lhunath 1369855360 forget lhunath 1369855487 learn Always use [[ .. ]] for testing strings or files, (( .. )) for testing numbers and 'if ..'' for testing commands. Do *NOT* use [ .. ] in bash (only in sh). See and . Difference between [ and [[: lhunath 1369855562 forget lhunath 1369855693 learn Always use [[ .. ]] for testing strings or files, (( .. )) for testing numbers and 'if ..'' for testing commands. Do *NOT* use [ .. ] in bash (only in sh). See and . Difference between [ and [[: stselikh 1381417121 forget stselikh 1381417124 learn Always use [[ .. ]] for testing strings or files, (( .. )) for testing numbers (but not zero-padded!) and ''if ..'' for testing commands. Do *NOT* use [ .. ] in bash (only in sh). See and . Difference between [ and [[: lhunath 1381417740 forget lhunath 1381417849 learn Always use [[ .. ]] for testing strings or files, (( .. )) for testing numbers and 'if ..'' for testing commands. Do *NOT* use [ .. ] in bash (only in sh). See and . Difference between [ and [[: geirha 1396288531 forget geirha 1396288533 learn Use [[ .. ]] for testing strings or files, (( .. )) for testing numbers and 'if ..'' for testing commands. Do *NOT* use [ .. ] in bash (only in sh). See and . Difference between [ and [[: e36freak 1508256881 forget e36freak 1508256882 learn Use [[ .. ]] for testing strings or files, (( .. )) for testing numbers, and ''if ..'' for testing commands. Do *NOT* use [ .. ] in bash (only in sh). See and . Difference between [ and [[: