pipefail doesn't work on NetBSD or FreeBSD
Gary E. Miller
gem at rellim.com
Sat Oct 13 21:03:30 UTC 2018
Yo Hal!
On Sat, 13 Oct 2018 13:56:39 -0700
Hal Murray <hmurray at 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
gem at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20181013/f9ac6d32/attachment.bin>
More information about the devel
mailing list