ããå æ¸ã·ã§ã«ã¹ã¯ãªãã㧠[ $? -eq 0 ] ã [ $? -ne 0 ] ãªã㦠ã¨ã©ã¼å¦çãæ¸ãã®ã¯ããããï¼ShellScriptBashLinuxUNIXmacOS ã¯ããã« [ $? -eq 0 ] ã [ $? -ne 0 ] ã¯åé·ã§ãã¡ãªããããããã¾ãããé常ã«å¤ãè¦ãããæ¸ãæ¹ã§ããã1979 å¹´ã« Bourne ã·ã§ã«ãåºãå ¬éãããæãããã®ãããªã³ã¼ãã¯å¿ è¦ããã¾ããã§ãããå®éã«å½æã¯ãã®ãããªæ¸ãæ¹ã¯ä½¿ããã¦ãããããã®ãããªæ¸ãæ¹ãããªããã°ãªããªãã£ãæ´å²çãªçµç·¯ãªã©ã¯ããã¾ãããããã¯ãªããåºã¾ã£ã¦ãã¾ã£ãè¯ããªãæ¸ãæ¹ã§ãã åªããã³ã¼ãã¨ã¯ç¡é§ããªãã·ã³ãã«ãªã³ã¼ãã§ããä¸å¯§ãªã³ã¼ãã¨ã¯ç¡é§ãªå¦çãæ¸ããã¨ã§ã¯ããã¾ããã[ $? -eq 0 ] ã [ $? -ne 0 ] ã¯æ¸ããªãã»ãããç°¡åã§èªã¿ããããããããããªãã¾ããåªããææ³
{{#tags}}- {{label}}
{{/tags}}