pipefail doesn't work on NetBSD or FreeBSD

Gary E. Miller gem at rellim.com
Sat Oct 13 21:20:09 UTC 2018


Yo Hal!

On Sat, 13 Oct 2018 14:16:46 -0700
Hal Murray <hmurray at megapathdsl.net> wrote:

> > I see no 'export' in your example.  
> 
> sh-4.4$ export 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$ 

Now I see export, but not the test I wanted:

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

Notice I have export twice?  You just have it once.

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/c6158a71/attachment-0001.bin>


More information about the devel mailing list