• Bug#1087780: dupload: bash tab completion does not work right

    From Daniel Kahn Gillmor@1:229/2 to All on Mon Nov 18 18:10:01 2024
    XPost: linux.debian.bugs.dist
    From: [email protected]

    Package: dupload
    Version: 2.11.2
    Severity: normal

    I use dupload from bash. The dupload bash tab completion doesn't behave
    as expected. In the terminal transcript below, <TAB> indicates that
    i've pressed the tab button

    ```
    0 dkg@bob:/tmp/cdtemp.jhxXbG$ find
    .
    ./build
    ./build/bar_1.2.3-1_source.changes
    ./build/bar_1.2.3.orig.tar.gz
    ./build/bar_1.2.3-1.dsc
    ./build/bar_1.2.3-1.debian.tar.xz
    ./foo
    0 dkg@bob:/tmp/cdtemp.jhxXbG$ dupload bui<TAB><TAB>
    build foo
    0 dkg@bob:/tmp/cdtemp.jhxXbG$ dupload build/<TAB><TAB>
    build build/bar_1.2.3-1_source.changes foo
    0 dkg@bob:/tmp/cdtemp.jhxXbG$ dupload build/
    ```

    In the first case (starting from "bui"), i would have expected the first
    TAB to have autocompleted "build/". instead it didn't give me anything,
    and on a second TAB, it prompted with two options, one of which doesn't
    even start with "bui".

    In the second case (starting from "build/"), i would have expected the
    tab completion to have just filled in
    "build/bar_1.2.3-1_source.changes", rather than giving me these other
    options as well.

    Thanks for maintaining dupload!

    --dkg


    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing-debug
    APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.11.5-amd64 (SMP w/20 CPU threads; PREEMPT)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages dupload depends on:
    ii libdpkg-perl 1.22.11
    ii perl 5.40.0-7

    Versions of packages dupload recommends:
    ii libio-socket-ssl-perl 2.089-1
    ii liburi-perl 5.30-1
    ii libyaml-libyaml-perl 0.902.0+ds-2+b1
    ii openssh-client 1:9.9p1-3+dkg1

    Versions of packages dupload suggests:
    ii libsecret-tools 0.21.4-3
    ii lintian 2.120.0
    ii postfix [mail-transport-agent] 3.9.0-3

    -- no debconf information

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    wr0EARYKAG8Fgmc7cscJEHctFh41zUuBRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z LnNlcXVvaWEtcGdwLm9yZ0q1Z6qUEnyJXNf5+5/FYqr0MUa1TVUAOW9vBf4lcaSw FiEEdLwExD2GCEvoZywGdy0WHjXNS4EAAI4nAQDMNbNnHcScdO3/Qn8ZaJxWdFg2 2T3ETG4+WG5dhxMokgD7BiKKvM++oP1FPYf9FDr8pOzGd8nwXBn2lFGSDvvMhAA=NtOC
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)