[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: |
Wed, 19 Jul 2023 19:43:54 +0200 |
On Wed, Jul 19, 2023, 18:57 Grisha Levit <grishalevit@gmail.com> wrote:
> On Wed, Jul 19, 2023 at 9:07 AM Chet Ramey <chet.ramey@case.edu> wrote:
> >
> > On 7/18/23 10:01 PM, alex xmb ratchev wrote:
> > > i in 5.2.15 bash aarch64 termux did
> > >
> > > $ cp -ap db2.*/<tabtab>
> > >
> > > and got
> > >
> > > db2.i5// db2.i7//
> >
> > I can't reproduce this.
>
> This is a combination of either visible-stats or mark-directories
> being on, filename completion being active, and the word being
> completed ending with a slash and referring to an existing directory.
>
i dont get the first part at all
$ INPUTRC=/dev/null bash --norc
> bash-5.3$ cd /tmp
> bash-5.3$ mkdir bin bld
> bash-5.3$ cd b*/
> bin// bld//
>
> bash-5.3$ complete -W 'bin/ bld/' -o filenames x
> bash-5.3$ x b
> bin// bld//
>
> Also I think this is not a bug -- readline is asked to append a slash
> to directory names and it does so. Same thing happens with e.g. `ls',
> when asked to append a slash to directory names and the supplied name
> already has a slash:
>
well imo its 'a bit bug'
depends on apps meta codings , whenever recognize is-already or not
$ ls -dp /var/
> /var//
>
- slash appended to tab so its two // at end, alex xmb ratchev, 2023/07/18
- 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 <=
- 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, 2023/07/24
- Re: slash appended to tab so its two // at end, Chet Ramey, 2023/07/24