èªåã«ã¯ããå¿ è¦ãªãããã¨æããªããç©èªç¶æ ã ã£ã Linuxæ¨æºæç§æ¸ ãèªã¿ã¾ããã 以å¤ã¨ç¥ããªããã¨ãããåå¼·ã«ãªãã¾ããã åºç¤å¤§äºã shellã®ãããã°(sh -x) : 9.8 ãããã°(P.177) æ°äººã®é shellãæ¸ãã¾ãã£ã¦ãprint debugãã¾ãã£ã¦ãèªåã«æãã¦ããããã ä¾ã¨ãã¦åããã«ããããããã¾ãããã -x ãã¤ãã¦å®è¡ãã㨠ã³ãã³ããå¤æ°ã®ä¸èº«ã表示ããªããå®è¡ãã¦ããã¾ãã sampleã¨ãã¦ã¯è¥å¹²è¦ã«ãããããããªãã§ãã $ cat samle.sh while true do echo "Continue? (y/n)" read input case $input in n) break ;; y) continue ;; *) echo "Please input y or n." ;; esac done ããã -xãä»ãã§
{{#tags}}- {{label}}
{{/tags}}