From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 23 Feb 2011 14:13:03 +0100 Message-ID: From: hugo rivera To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] acme Local command on p9p Topicbox-Message-UUID: b382eaa0-ead6-11e9-9d60-3106f5b1d025 That doesn't work. I think it's because the environment variables that acme sees are those that already existed when it was called, and not those created afterwards. 2011/2/23 Gabriel Diaz : > hello > > probably there are a better ways, like rc maintainng a `namespace`/env fs= , > so it reads that fs creating the environment correspondant to that namesp= ace > when started or simmiliar, but in lunix way (and with other shells) you c= an > use one script to launch acme that executes the arguments of the Local > script after the acme launch :-? > start_acme.sh > #/bin/bash > acme & > while a=3Dread(named_pipe_or_simmilar); do > =C2=A0 =C2=A0$a > done; > > And Local > #!/bin/bash > echo $* > named_pipe_or_simmilar > So Local export var=3Dvar could make var available > Also not sure if plumber would help you instead of using pipes. > My corporate pc barely allows me to reply emails, so this is not tested ;= ) > gabi > > On Wed, Feb 23, 2011 at 11:39 AM, hugo rivera wrote: >> >> Hello, >> the man page for acme on p9p reads >> >> Local In the Plan 9 acme, this prefix causes a command to be run in >> acme'sown file name space and environment variable group. On >> Unix this is impossible... >> >> is there any other way to define environment variables for acme while >> it's running? >> On plan9, Local var=3Dval sets var and then all other commands I execute >> with a middle click see $var. On some ocasions this is very useful. >> >> -- >> Hugo >> > > --=20 Hugo