bug#43497: ls exit status on removed directory

2020-09-21 Thread Paul Eggert
On 9/18/20 4:15 PM, Philip Rowlands wrote: $ mkdir /tmp/abc $ cd /tmp/abc $ rmdir /tmp/abc $ ls What happened: no output, successful exit status What was expected: no output, unsuccessful exit status POSIX says that the rmdir command is supposed to behave like the rmdir syscall. For the

bug#43497: ls exit status on removed directory

2020-09-19 Thread Pádraig Brady
On 19/09/2020 00:15, Philip Rowlands wrote: Steps to reproduce: $ mkdir /tmp/abc $ cd /tmp/abc $ rmdir /tmp/abc $ ls What happened: no output, successful exit status What was expected: no output, unsuccessful exit status ls tried to list the contents of . but failed to do so, at least on

bug#43497: ls exit status on removed directory

2020-09-18 Thread Philip Rowlands
Steps to reproduce: $ mkdir /tmp/abc $ cd /tmp/abc $ rmdir /tmp/abc $ ls What happened: no output, successful exit status What was expected: no output, unsuccessful exit status ls tried to list the contents of . but failed to do so, at least on Linux: open(".",