Re: sh bug?

From: Walter Belgers <walter+freebsd_at_belgers.com>
Date: Fri, 28 Jan 2005 09:19:53 +0100
Julian Elischer wrote:
> 
> however  echo $$
> and
>   ( echo $$ )

echo is a shell builting (same with ps).
Apparantly, sh is smart in recognising you are running sh/ps.

$ echo $$
11808
$ (echo $$)
11808
$ cat x
#!/bin/sh
echo $$
$ (./x)
11812

Walter.
-- 
Walter Belgers
walter_at_belgers.com       Get some clue! http://www.ENOCLUE.nl/
Received on Fri Jan 28 2005 - 07:19:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC