Re: [hackers] [PATCH] Fix showing directories when -R flag is set in ls(1)

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Wed, 17 Feb 2016 17:19:48 +0000

On Wed, Feb 17, 2016 at 07:15:17PM +0200, pekka.jylha.ollila_AT_gmail.com wrote:
> On Wed, Feb 17, 2016 at 04:57:12PM +0000, Dimitris Papastamos wrote:
> > Actually, upon second thought I prefer the current behaviour
> > because the output is actually parsable.
> >
> > This dir:\n stuff is just insane.
> >
>
> The current version is broken though, it outputs "./" where there would
> be a directory:
>
> ls -R
> ./Makefile
> fgetrune.c
> fputrune.c
> isalnumrune.c
>
> ./concat.c
> cp.c
> crypt.c
> ealloc.c

yes the current version is broken for nested directories as well...

mkdir -p a/b/c/d
ls -R a

produces wrong output

to be honest I am one step from removing -R support from ls :P
Received on Wed Feb 17 2016 - 18:19:48 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 17 2016 - 19:12:24 CET