From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Tue, 28 Aug 2012 21:34:25 +0200 Message-ID: <1638039.uOziQkrayL@blitz> User-Agent: KMail/4.9 (Linux/3.6.0-rc1-l50; KDE/4.9.0; x86_64; ; ) In-Reply-To: <5538fcd345a73fc294c6ee568f2fcdb4@kw.quanstro.net> References: <3330200.XJjoRb8JbZ@blitz> <5538fcd345a73fc294c6ee568f2fcdb4@kw.quanstro.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [9fans] rc's shortcomings (new subject line) Topicbox-Message-UUID: b1caf094-ead7-11e9-9d60-3106f5b1d025 On Tuesday 28 of August 2012 14:44:40 erik quanstrom wrote: > (...) > > variable scoping (better than subshel) would help writing larger > > scripts, but that's not necessarily an improvement ;-) something > > similar to LISP's `let' special form, for dynamic binding. > > there is variable scoping. you can write > > x=() y=() cmd thank you good sire, for you've just made my day. now i see i can do: x=1 y=2 z=3 ...and only `z' retains its new value in the external scope, while `x' and `y' are limited in scope. horray for rc and helpful 9fans, -- dexen deVries 1972 - Dennis Ritchie invents a powerful gun that shoots both forward and backward simultaneously. Not satisfied with the number of deaths and permanent maimings from that invention he invents C and Unix.