Subject: Re: bin/1495: Bad feature in ls(1)
To: Robert Black <r.black@ic.ac.uk>
From: Eduardo E. Horvath eeh@btr.com <eeh@btr.btr.com>
List: netbsd-bugs
Date: 09/25/1995 08:36:11
On Sun, 24 Sep 1995, Robert Black wrote:

> On Sep 22,  3:55pm, der Mouse wrote:
> > Subject: Re:  bin/1495: Bad feature in ls(1)
> > >    "ls -R ./" adds the prefix to the paths as they are printed.  This
> > >    results in filenames being printed as .//foo rather than ./foo.
> >
> > This is a bug?  If you "ls -R .././/foo/./", you'll see pathnames like
> > .././/foo/.//bar rather than ../foo/bar - do you call that a bug too?

[...]

> would give the desired result (except formatting). Come to think of it
> 
> ls -R `echo '.././/foo/./' | realpath`
> 
> might be a better way to do it in this case.

doesn't

	> ls -R `(cd .././/foo/./; pwd)`

already do that?

Eduardo