From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Wed, 8 Oct 2008 21:25:51 +0200 From: "Rudolf Sykora" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <6D73C1E6-8F03-43A6-BF0F-03FADE8C33D9@mac.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_66755_10765387.1223493951667" References: <14ec7b180810071152i1dcdc311la333bfc3e737729d@mail.gmail.com> <57408E90-B076-45B3-A734-AA2D9D3E1551@mac.com> <6D73C1E6-8F03-43A6-BF0F-03FADE8C33D9@mac.com> Subject: Re: [9fans] environment + functions Topicbox-Message-UUID: 19ff9dd0-ead4-11e9-9d60-3106f5b1d025 ------=_Part_66755_10765387.1223493951667 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/10/8 Pietro Gagliardi > On Oct 8, 2008, at 2:52 PM, Rudolf Sykora wrote: > > >> >> So, if I continuously want to add and remove functions within one shell >> (running hypothetically forever), do I have to 'manually' delete those empty >> left-behind files? --- that is, not only use >> fn name_that_I _don't_need >> but also >> rm /env/'fn#name_that_I _don't_need' ? >> >> No. >> >> Well... that's an answer, but not very constructive indeed. When do those >> files dissapear? >> R. >> > > When the namespace disappears. > > You can ignore the file even being there. There is a difference between the > file and how the program uses them. If the program (rc) doesn't have a > function given a name but /env does, it makes no difference. rc will > overwrite the file when you redefine the function. > Well, when it disappears, sure. All what you say is understandable and I know it. But as I explicitly noted, this namespace presumably never disappears and the number of files increases. And having trillion useless files is for no good. Moreover, as I tried to say, I don't see the reason for that they stay there. See my about 4 hours old mail. Ruda ------=_Part_66755_10765387.1223493951667 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline


2008/10/8 Pietro Gagliardi <pietro10@mac.com>
On Oct 8, 2008, at 2:52 PM, Rudolf Sykora wrote:



So, if I continuously want to add and remove functions within one shell (running hypothetically forever), do I have to 'manually' delete those empty left-behind files? --- that is, not only use
fn name_that_I _don't_need
but also
rm /env/'fn#name_that_I _don't_need' ?

No.

Well... that's an answer, but not very constructive indeed. When do those files dissapear?
R.

When the namespace disappears.

You can ignore the file even being there. There is a difference between the file and how the program uses them. If the program (rc) doesn't have a function given a name but /env does, it makes no difference. rc will overwrite the file when you redefine the function.

Well, when it disappears, sure. All what you say is understandable and I know it. But as I explicitly noted, this namespace presumably never disappears and the number of files increases. And having trillion useless files is for no good. Moreover, as I tried to say, I don't see the reason for that they stay there. See my about 4 hours old mail.
Ruda

------=_Part_66755_10765387.1223493951667--