% echo $$ 32558 % ps PID TTY TIME CMD 32558 pts/0 00:00:00 zsh 32642 pts/0 00:00:00 ps % cat >script echo $# % sh script a b c d 4 % sh script xxx 'yyy zzz' 2