Yo Hal!

On Sat, 13 Oct 2018 13:56:39 -0700
Hal Murray <hmur...@megapathdsl.net> wrote:

> > Maybe: export FOO=xx ??  
> 
> I tried it.  It goes in, but the old value gets restored after the )
> We need a shell wizard.
> 
> sh-4.4$ foo=3
> sh-4.4$ (echo $foo)
> 3
> sh-4.4$ (foo=4; echo $foo)
> 4
> sh-4.4$ echo $foo
> 3
> sh-4.4$ 

I see no 'export' in your example.

Try:

$ export foo=3
$ (export foo=4; echo $foo)
$ echo $foo



RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        g...@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

Attachment: pgpl6EbgoAX6I.pgp
Description: OpenPGP digital signature

_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to