Why does export
fail when used as the last step in a command pipeline?
echo FOO=bar | xargs export
# => xargs: export: No such file or directory
I can rewrite it this way to accomplish what I want:
export `echo FOO=bar`
But why can't I use export
in the first way?
export is a shell builtin and xargs expects an actual binary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With