From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: <44D31796.7050507@gmail.com> <676c3c4f0608040815s5cdddf17xb080bfeac5b0fcd9@mail.gmail.com> <599f06db0608041203m351f1f7dkcb6c44f9d14b71d7@mail.gmail.com> <02E129D3-32DF-41CC-9026-46BAA1FF8133@ar.aichi-u.ac.jp> <20060809110352.GA5077@shodan.homeunix.net> <00A70127-4D3A-4598-ABCD-29EBEB74B183@ar.aichi-u.ac.jp> <20060809112709.GB5077@shodan.homeunix.net> <20060809113942.GC5077@shodan.homeunix.net> <96B9C0FD-D1B1-4374-B247-1DCE7109C75C@ar.aichi-u.ac.jp> <20060809122620.GF5077@shodan.homeunix.net> <20060809123924.GG5077@shodan.homeunix.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <99CDA9AF-0B74-472D-8E4F-288638B3808D@ar.aichi-u.ac.jp> Content-Transfer-Encoding: 7bit From: arisawa@ar.aichi-u.ac.jp Subject: Re: [9fans] Environment variable Date: Wed, 9 Aug 2006 22:22:03 +0900 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 9b2633f4-ead1-11e9-9d60-3106f5b1d025 On 2006/08/09, at 21:58, arisawa@ar.aichi-u.ac.jp wrote: > * Martin Neubauer (m.ne@gmx.net) wrote: > >>> >>> I see what you are trying to accomplish. Probably >>> b=$"`{cat /env/a} >>> will do. >>> >> >> And iterating a bit further, I found this doesn't work with out a >> temp: >> tmp=`{cat /env/a} >> b=$"tmp >> > > term% a=() > term% xd -c /env/c > 0000000 a l i c e 00 > 0000006 > term% c='' # null string > term% cp /env/c /env/a > term% xd -c /env/a > 0000000 00 > 0000001 > term% b=$`{cat /env/a} > rc: variable name not singleton! > term% b=$"`{cat /env/a} > rc: variable name not singleton! > term% > term% > term% t=`{cat /env/a} > term% xd -c /env/t > 0000000 > 0000000 > term% b=$t > term% xd -c /env/t > 0000000 > 0000000 > term% b=$"t > term% xd -c /env/t > 0000000 > 0000000 > term% > > NG! > > Oh! That works! It is so hot tonight that I did incorrect experiment. Sorry!