bash ã§ã¯ãããããªæ¡ä»¶ã§åå²ãåºæ¥ãã ifã§ä½¿ãããããããªæ¡ä»¶ãè¦ã¦ã¿ããã¨æãã æ°å¤å¤æç³» æ°åãæ¯è¼ããã¨ãã¯ä»¥ä¸ãè¦ãã¦ããã°ããã (( 1 > 0 )) (( 1 >= 0 )) (( 1 < 0 )) (( 1 <= 0 )) (( 1 == 0 )) (( 1 != 0 )) (( 0 )) # çµäºã¹ãã¼ã¿ã¹ 1 /if ã§ã¯ false (( 1 )) # çµäºã¹ãã¼ã¿ã¹0 /if ã§ã¯true (( ! 0 )) # çµäºã¹ãã¼ã¿ã¹ 0 /if ã§ã¯ true (( 1 && 1 )) (( 0 ||1 )) æ°å¤ãæ¯è¼ããã¨ã㯠if (( 1!=0 )) ; then echo yes ; fi ã¨æ¸ãã¾ãããã®æ°å¤å¤æç³»ã®åºæ¥ããã¨ã¯let ã¨å ¨ãåãã§ãã (( ))ã®double parensis ã§ã®è¨è¿°æ¹æ³ã¯ ã¾ãå¥è¨äºãã£ã¨è©³ç´°ã«æ¸ãã¾ãã
{{#tags}}- {{label}}
{{/tags}}