åå(bashã«ããã·ã§ã«ã¹ã¯ãªããã®å°æ(1))ã«å¼ãç¶ããã·ã§ã«ã«ãã£ã¦èªåçã«å¤ãè¨å®ãããç¹æ®ãªå¤æ°ã«ã¤ãã¦ç´¹ä»ãããç¹æ®ãªå¤æ°ãåç §ãããã¨ã«ãããæ§ã ãªæ å ±ãåå¾ãããã¨ãã§ãã(ãã ãããããã®å¤æ°ã«ã¯èªåã§ä»»æã®å¤ãè¨å®ãããã¨ã¯ã§ããªã)ã ãã¦ãã¾ãã¯ç¹æ®å¤æ°ãä¸è¦§ã§ã¾ã¨ãã¦ã¿ããã馴æã¿ã®ãã®ãå¤ãããæå¾ã®2ã¤(ç¹ã«æå¾ã®PIPESTATUS)ã«ã¤ãã¦ã¯ãã£ã¨ä»ã¾ã§ç¥ããªãã£ã人ãããããããªãã ããããã·ã§ã«ã®ä¸ã§ãã¤ãããã¨éä¸ã®ã³ãã³ãã®ãªã¿ã¼ã³ã³ã¼ããæ¾ããªãã¨ãæã£ã¦ãã¾ãããï¼ä»åã®ãã¤ã³ãã¨ãã¦ã¯ãã1. PIPESTATUSå¤æ°ã«ã¤ãã¦ãã¨ã2. ç¹æ®å¤æ° $@ã¨$*ã®éãã«ã¤ãã¦ãã®2ç¹ã主ã«èª¬æããã ç¹æ®å¤æ°ä¸è¦§è¡¨ å¤æ°å èªåçã«è¨å®ãããå¤ $? ç´åã«å®è¡ãããã³ãã³ãã®çµäºã¹ãã¼ã¿ã¹ãè¨å®ãããå¤æ°ãæ£å¸¸çµäºã®å ´åã¯ã0ããç°å¸¸çµäºã®å ´
{{#tags}}- {{label}}
{{/tags}}