Re: [PATCH] ls: issue error message on removed directory

2020-02-27 Thread Pádraig Brady
On 12/02/2020 11:18, Pádraig Brady wrote: On 11/02/2020 19:41, Pádraig Brady wrote: On 11/02/2020 10:45, Colin Watson wrote: If the current directory has been removed, then "ls" confusingly produced no output and no error message, indistinguishable from the case of running on an empty

Re: [PATCH] ls: issue error message on removed directory

2020-02-12 Thread Pádraig Brady
On 12/02/2020 11:56, Bernhard Voelker wrote: On 2/11/20 8:41 PM, Pádraig Brady wrote: On 11/02/2020 10:45, Colin Watson wrote: If the current directory has been removed, then "ls" confusingly produced no output and no error message, indistinguishable from the case of running on an empty

Re: [PATCH] ls: issue error message on removed directory

2020-02-12 Thread Pádraig Brady
On 12/02/2020 13:38, Pádraig Brady wrote: On 12/02/2020 11:56, Bernhard Voelker wrote: On 2/11/20 8:41 PM, Pádraig Brady wrote: On 11/02/2020 10:45, Colin Watson wrote: If the current directory has been removed, then "ls" confusingly produced no output and no error message, indistinguishable

Re: [PATCH] ls: issue error message on removed directory

2020-02-12 Thread Bernhard Voelker
On 2/11/20 8:41 PM, Pádraig Brady wrote: On 11/02/2020 10:45, Colin Watson wrote: If the current directory has been removed, then "ls" confusingly produced no output and no error message, indistinguishable from the case of running on an empty directory.  It makes more sense to report ENOENT in

Re: [PATCH] ls: issue error message on removed directory

2020-02-12 Thread Colin Watson
On Wed, Feb 12, 2020 at 10:54:43AM +, Pádraig Brady wrote: > Sorry I sent the following to the list only. > Please cc coreutils@gnu.org on any responses... > > On 11/02/2020 10:45, Colin Watson wrote: > > If the current directory has been removed, then "ls" confusingly > > produced no output

Re: [PATCH] ls: issue error message on removed directory

2020-02-12 Thread Pádraig Brady
On 11/02/2020 19:41, Pádraig Brady wrote: On 11/02/2020 10:45, Colin Watson wrote: If the current directory has been removed, then "ls" confusingly produced no output and no error message, indistinguishable from the case of running on an empty directory. It makes more sense to report ENOENT in

Re: [PATCH] ls: issue error message on removed directory

2020-02-11 Thread Pádraig Brady
On 11/02/2020 10:45, Colin Watson wrote: If the current directory has been removed, then "ls" confusingly produced no output and no error message, indistinguishable from the case of running on an empty directory. It makes more sense to report ENOENT in this case. I don't think this is a

Re: [PATCH] ls: issue error message on removed directory

2020-02-11 Thread Colin Watson
On Tue, Feb 11, 2020 at 10:45:46AM +, Colin Watson wrote: > If the current directory has been removed, then "ls" confusingly > produced no output and no error message, indistinguishable from the case > of running on an empty directory. It makes more sense to report ENOENT > in this case. > >