Skip to main content
3 events
when toggle format what by license comment
Jan 1, 2022 at 3:22 comment added fpmurphy Other ways of writing the if statement include if test "$mutedStatus" -eq 0, if [[ "$mutedStatus" -eq 0 ]], if (( mutedStatus == 0 )) , and if let "mutedStatus == 0" and many more. However for portability, one such use the Posixly correct war, i.e. if [ "$mutedStatus" -eq 0 ]
Dec 31, 2021 at 23:56 history edited chepner CC BY-SA 4.0
added 2 characters in body
Dec 31, 2021 at 23:55 history answered Bassie CC BY-SA 4.0