From a4e4b2fff593e89abb93dffd5d502e94c31623dd Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Sat, 3 Feb 2018 20:02:01 +0000 Subject: [PATCH] Bash: operators need spaces around them --- README.md | 2 +- languages/bash.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index de14f1d..9dcecf0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Awesome Cheatsheets -> Useful cheatsheets to save you time. 🚀 +> Useful cheatsheets with everything you should know in one single-file. 🚀 [![forthebadge](http://forthebadge.com/images/badges/as-seen-on-tv.svg)](http://forthebadge.com) diff --git a/languages/bash.sh b/languages/bash.sh index 67c03a9..6c4bf05 100644 --- a/languages/bash.sh +++ b/languages/bash.sh @@ -212,10 +212,10 @@ statement1 || statement2 # or operator -a # and operator inside a test conditional expression -o # or operator inside a test conditional expression -str1=str2 # str1 matches str2 -str1!=str2 # str1 does not match str2 -str1str2 # str1 is greater than str2 +str1 = str2 # str1 matches str2 +str1 != str2 # str1 does not match str2 +str1 < str2 # str1 is less than str2 +str1 > str2 # str1 is greater than str2 -n str1 # str1 is not null (has length greater than 0) -z str1 # str1 is null (has length 0)