On 2021-06-29 17:28:40 +0100, Stephane Chazelas via austin-group-l at The Open Group wrote: > But utilities are meant to behave the same whether they're > builtin or not. A non-builtin pwd writting to a closed pipe > would not cause the shell to exit.
Another difference between implementations with a pwd builtin or not: $ (trap 'echo PIPE >&2' PIPE; sleep 1; pwd; :; ) | : sh: 1: pwd: pwd: I/O error PIPE $ (trap 'echo PIPE >&2' PIPE; sleep 1; /bin/pwd; :; ) | : $ as the trap applies only to builtins. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)