Seems Charles Forsyth's bash (or wc -l) works very differently.

[r...@host ~/]# set | wc -l
      49
[r...@host ~/]#

37 out of 49 are just environment variables (as contrasted to shell variables). So the shell is using 12 variables in addition to the environment. A 'set | wc -c' gives 2133 over half of which are from the environment, 972 of them in TERMCAP.

--On Thursday, April 09, 2009 3:28 PM -0400 "Devon H. O'Dell" <devon.od...@gmail.com> wrote:

2009/4/9 Richard Miller <9f...@hamnavoe.com>:
set | wc -l
  8047
well.

This is nearly as big as the shell itself in the (ahem) good old days.

term% tar tzvf interdata_v6.tar.gz bin/sh
--rwxr-xr-x     8316 Nov 13 15:48 1978 bin/sh

No, it's very likely bigger. wc -l is lines of course, and I'm
guessing each line is more than 1 character. However,

$ set | wc -l
64

I don't quite get that locally.

--dho






Reply via email to