[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: slash appended to tab so its two // at end
From: |
alex xmb ratchev |
Subject: |
Re: slash appended to tab so its two // at end |
Date: |
Mon, 24 Jul 2023 20:57:10 +0200 |
On Mon, Jul 24, 2023, 7:30 PM Chet Ramey <chet.ramey@case.edu> wrote:
> On 7/19/23 1:44 PM, Grisha Levit wrote:
> > On Wed, Jul 19, 2023 at 12:57 PM Grisha Levit <grishalevit@gmail.com>
> wrote:
> >> Also I think this is not a bug -- readline is asked to append a slash
> >> to directory names and it does so.
> >
> > It's easy enough to avoid printing the indicator slash if we just
> > printed a path already ending in a slash. It's an improvement
> > cosmetically but I think correctness can be argued either way.
>
> It's cosmetic only. Multiple non-leading slashes in a pathname are
> equivalent to a single slash. The only exception is when there are
> exactly two leading slashes.
>
partly cosmetic
its not foo/ and foo/// will yield different paths
i just found it plain .. under the level ..
btw i didnt get the begin slashes story
greets
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
>
>
- Re: slash appended to tab so its two // at end, (continued)
- Re: slash appended to tab so its two // at end, Martin D Kealey, 2023/07/19
- Re: slash appended to tab so its two // at end, Chet Ramey, 2023/07/19
- Re: slash appended to tab so its two // at end, Greg Wooledge, 2023/07/19
- Re: slash appended to tab so its two // at end, Grisha Levit, 2023/07/19
- Re: slash appended to tab so its two // at end, alex xmb ratchev, 2023/07/19
- Re: slash appended to tab so its two // at end, Grisha Levit, 2023/07/19
- Re: slash appended to tab so its two // at end, alex xmb ratchev, 2023/07/19
- Re: slash appended to tab so its two // at end, Chet Ramey, 2023/07/24
- Re: slash appended to tab so its two // at end,
alex xmb ratchev <=
- Re: slash appended to tab so its two // at end, Chet Ramey, 2023/07/24