Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
exportコマンド パイプラインの最後のステップとして使用すると失敗するのはなぜですか?
export
echo FOO=bar | xargs export # => xargs: export: No such file or directory
私が望むことを達成するために、このように書き直すことができます:
export `echo FOO=bar`
しかし、なぜexport最初の方法で使用できないのですか?
export はシェルの組み込みであり、xargs は実際のバイナリを想定しています。