From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 9 Apr 2009 23:05:00 +0100 From: Eris Discordia To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <3E44474FAD9CC27F36ADDCB1@[192.168.1.2]> In-Reply-To: <9ab217670904091228i703d5308q6ad7e5ff0987be97@mail.gmail.com> References: <7161bf48074fbed7ce78fdaf614b92b8@terzarima.net> <385e002a7435aac5d4428939fc564ac8@hamnavoe.com> <9ab217670904091228i703d5308q6ad7e5ff0987be97@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [9fans] a bit OT, programming style question Topicbox-Message-UUID: d8ee2b1c-ead4-11e9-9d60-3106f5b1d025 Seems Charles Forsyth's bash (or wc -l) works very differently. > [root@host ~/]# set | wc -l > 49 > [root@host ~/]# 37 out of 49 are just environment variables (as contrasted to shell=20 variables). So the shell is using 12 variables in addition to the=20 environment. A 'set | wc -c' gives 2133 over half of which are from the=20 environment, 972 of them in TERMCAP. --On Thursday, April 09, 2009 3:28 PM -0400 "Devon H. O'Dell"=20 wrote: > 2009/4/9 Richard Miller <9fans@hamnavoe.com>: >>> set | wc -l >>> =C2=A0 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 =C2=A0 =C2=A0 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 >