BASHã¹ã¯ãªããã§ã®æ¡ä»¶å¼ã¨ã¹ãã¼ãã¡ã³ããããã¯ã«ã¤ãã¦èª¬æã,ããããã¨ã«ifæã®æ¸ãæ¹ã説æãã. æ¡ä»¶ ã¹ãã¼ãã¡ã³ãããã㯠testã¨[ ] ifæ æ¡ä»¶é¨ã®å¿ç¨ ifæãå®è¡ããããã«ã¯,æ¡ä»¶ããã§ãã¯ããããã®ä»çµã¿ãå¿ è¦ã§ãã.å ã«ã¹ã¯ãªããã¯exitæã§çµãããã¨æ¸ããã®ã¯,ãã®ä»çµã¿ã®ããã§ãã.以ä¸ã¯commad1ãæåããå ´åã¯command2ãå®è¡ãããã®ã§ãã. command1 && command2 以ä¸ã¯éã«command1ãæåããå¾ã«command2ãå®è¡ãããã®ã§ãã. command1 || command2 æ¼ç®å&&ã||ãããå ´å,ã·ã¹ãã ã¯command1ã®è¿ãå¤(çµäºã³ã¼ã)ãã¿ã¦comman2ãå®è¡ãããã©ããã決ãã.ããã¦ãã®è¿ãå¤ã¯exitæã®ãã©ã¡ã¼ã¿ã§ãã. UNIXã®ææ³ã®ä¸ã¤ã«ã·ã³ãã«ã§å°ãããã®ãä½ãã¨ããææ³ããã
{{#tags}}- {{label}}
{{/tags}}