Git Product home page Git Product logo

Comments (2)

bitstreamout avatar bitstreamout commented on July 23, 2024

Compare with pull request #41

from bash-completion.

WilliamTowle avatar WilliamTowle commented on July 23, 2024

A post at superuser.com echoes bitstreamout's observation that compgen/compopt -o bashdefault is useful.

This reproduces in a minimal debootstrap environment for Debian 11, where ls /*<TAB> fails to show completions after . /usr/share/bash-completion/bash_completion is run, and in a full install can be seen from login until a shopt -u progcomp/complete -r/suitable edit to ~/.bashrc

debian's bash-completion 1:2.11-2 patches as suggested for this test case with:

--- bash_completion.orig        2021-11-07 10:26:31.218296781 +0000
+++ bash_completion     2021-11-07 10:26:50.422391751 +0000
@@ -623,6 +623,8 @@
         # 2>/dev/null for direct invocation, e.g. in the _filedir unit test
         compopt -o filenames 2>/dev/null
         COMPREPLY+=("${toks[@]}")
+    else
+        compopt -o bashdefault 2>/dev/null
     fi
 } # _filedir()

from bash-completion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.