Shell

2018年にもなって xargs でハマった

BSD と GNU 版の挙動の違いにハマった。 以下、ミニマムに試した結果。 環境 BSD xargs: macOS 10.12.6 GNU xargs: ubuntu 18.04 xargs (GNU findutils) 4.7.0-git 同じ BSD xargs $ echo "a b c" | xargs -n1 a b c GNU xargs $ echo "a b c" | xargs -n1 a…