Linuxãå©ç¨ããéã大ä½ã¯ã³ã³ã½ã¼ã«ãå©ç¨ããã¨æãã ãã®æã«ä½¿ã£ã¦ããã·ã§ã«ã®ç¨®é¡ã¯ãshãbashãkshãzshã¨å¤å²ã«æ¸¡ããä»åã¯ãç¾å¨ä½¿ã£ã¦ããã·ã§ã«ã®ç¨®é¡ã調ã¹ãæ¹æ³ãã¾ã¨ãã¦ã¿ãã 1.ã³ã³ã½ã¼ã«ä¸ã§ç¢ºèªããæ¹æ³ ã³ã³ã½ã¼ã«ä¸ã§ç¢ºèªããã®ã¯ã以ä¸ã®ã³ãã³ãã©ã¡ããã§å¯¾å¿åºæ¥ãã echo $0 ps -o args= -p "$$" åºæ¬çã«ããã® "echo $0"ã¨"ps -o args= -p "$$""ã§ç¢ºèªãå¯è½ã ã SolarisãHP-UXãMacã§ãæå¹ãªã®ã§ãåºæ¬çã«ã¯ããã ãè¦ãã¦ããã°ããã ããã ãã ãã·ã§ã«ã¹ã¯ãªããã§ã¯ãã®ææ³ã¯ä½¿ããªãã ä¾ãã°ã以ä¸ã®ãããªã¹ã¯ãªãããå®è¡ããã¨ãããã #!/bin/sh echo "echo $0" echo $0 echo "" echo "ps -o args= -p """$$"""" ps -o
{{#tags}}- {{label}}
{{/tags}}