On Fri, 28 Jan 2005 09:19:53 +0100, Walter Belgers <walter+freebsd_at_belgers.com> wrote: > echo is a shell builting (same with ps). $ ( echo $$ ) 623 $ ( /bin/echo $$ ) 623 $$ is expaned by the outside of "()" shell. echo is not expand $$. % sh $ csh -c 'ps -alw -p $$' UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 1001 788 670 5 20 0 2240 1752 pause S+ p3 0:00.02 csh -c ps -alw -p $$ csh pid^^^ ^^^sh pid $ ( csh -c 'ps -alw -p $$' ) UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 1001 790 670 3 20 0 2240 1752 pause S+ p3 0:00.02 csh -c ps -alw -p $$ csh pid^^^ ^^^sh pid same sh pid. I have poor english, sorry. (on 5.3-RELEASE-p5)Received on Fri Jan 28 2005 - 08:16:29 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC