B! 39 0 0 0 ã·ã§ã«ã¹ã¯ãªãããæ¸ãã¦ãæã«$@ã使ã£ã¦ ããã£ãã®ã§ããã«ã¤ãã¦ã $@ã¨$* -fã-dã®ç½ ã¾ã¨ã $@ã¨$* $@ã¯ã·ã§ã«ã¹ã¯ãªãã 1 ã§ã¯ã¹ã¯ãªãããé¢æ°ã®ä¸ã§å ¨ã¦ã®å¼æ°ã表ãã¾ãã $ f(){ echo $@;} $ f a b c a b c ãªæãã ããã§ã次ã®æ§ãªã¹ã¯ãªãããèãã¦ã¿ã¾ãã atmark.sh 1 2 3 4 5 6 #!/usr/bin/env bash if [ "$@" != "" ];then echo "$@" else echo empty fi ãããå®è¡ãã¦ã¿ã㨠$ ./atmark.sh a a $ ./atmark.sh ./atmark.sh: line 2: [: unary operator expected empty! $ ./atmark.sh a b ./atmark.sh: line 2
{{#tags}}- {{label}}
{{/tags}}