From 439ca5570a2ff5ebce5b234347f7814b38fe1613 Mon Sep 17 00:00:00 2001 From: koalaman Date: Fri, 19 Jan 2018 19:04:21 -0800 Subject: [PATCH] Updated SC2071 (markdown) --- SC2071.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SC2071.md b/SC2071.md index c891c8b..7f60568 100644 --- a/SC2071.md +++ b/SC2071.md @@ -27,4 +27,9 @@ If you want to compare numbers by value, use the numerical comparison operators ### Exceptions: -If the strings happen to be version numbers and you're using <, or > to compare them as strings, and you consider this an acceptable thing to do, then you can ignore this warning. \ No newline at end of file +If the strings happen to be version numbers and you're using <, or > to compare them as strings, and you consider this an acceptable thing to do, then you can ignore this warning. + +### Related resources: + +* [Bash Pitfalls: `[[ $foo > 7 ]]`](https://mywiki.wooledge.org/BashPitfalls#pf7) +* [StackOverflow: Comparing numbers in Bash](https://stackoverflow.com/questions/18668556/comparing-numbers-in-bash) \ No newline at end of file