Comments (5)
With echo as command it works ... it does not work with e.g. mkdir
from bash-completion.
The problem doesn't seem to reproduce in the current version.
from bash-completion.
I wonder if this is a bash version thing; I cannot reproduce even with bash-completion version 2.4 any more, with bash 5.2.21(1)-release.
from bash-completion.
Hmm, I tried to reproduce the problem with different versions of Bash and bash-completion, but I still cannot reproduce the problem. On the other hand, the issue seemed to have been reported many times in the past with Bash <= 4.2. Maybe it happened with a specific set of options.
- I checked bash-completion-2.4 in Bash 4.1, 4.2, ..., 5.2, and the devel branch of Bash, but the problem doesn't seem to reproduce. I also tried Bash 4.0, but bash-completion-2.4 doesn't support Bash 4.0. I also tried
bash-completion-2.5
, but the result seems to be the same. - #417 mentions bug-bash/2020-05/43, and a reply to it says it's fixed in Bash 4.2.29 while mentioning #323. However, the problem doesn't reproduce even with Bash 4.2.0 + bash-completion 2.4. One of the old reports seems to be reported with the combination of bash 4.2 and bash-completion-2.0
- The problem happens when
-o filenames
is specified to the completion setting and the completion function generates a parameter expansion of the form$varname
. However,-o filenames
is specified to thels
completion until bash-completion-1.3, while the completion of variable names is supported only from bash-completion-1.90. There doesn't seem to be a bash-completion version that has both-o filenames
and the variable name completions. One possibility is that a user loads different versions of bash-completion (e.g. the system bash-completion loaded via/etc/profile.d
and the user's bash-completion installation directly sourced from .bashrc), but even in that case, the problem wouldn't happen because the one loaded later should overwrite everything the former one has defined.
from bash-completion.
I've run into this problem myself over the years multiple times, but at the moment I'm out of ideas how to attempt reproducing it. Will close now, I'm sure it will resurface if it is still present in some setup; hopefully we get all the needed info about it to get a reproducer.
from bash-completion.
Related Issues (20)
- Hard to find where to report bugs HOT 2
- Latest CHANGELOG.md starts at `## 2.11...` and earlier HOT 2
- Redirection moved to the front wrongly affects completions HOT 2
- Gentoo update to 2.14 fails due to QA notice HOT 3
- tar file completion not working as expected under various option combinations HOT 2
- Enable .java Filename Completion for java Command HOT 2
- GCC tests fail on non-x86 platforms HOT 1
- CDPATH autocomplete is not working HOT 5
- 000_bash_completion_compat.bash sourced last in some locales HOT 1
- bash: _comp_initialize: command not found HOT 2
- [Regression] make autocompletion skips install HOT 3
- Native bash-completion 2 loader using complete -D HOT 5
- Completing a relative path with a space and softlinks inside, turns it absolute (which breaks creating relative softlinks) HOT 1
- Completions for 'alternatives' command are broken HOT 1
- xspec is ignored when Bash option `force_fignore` is unset HOT 5
- [2.14.0] rsync path completion fails if a folder name have a space
- Completions are not loaded in Linux+Homebrew HOT 3
- Feature request: generalized implementation of `_comp_command_offset` HOT 12
- File ~/.bash_completion no longer working after update to 2.14. HOT 2
- Hi, i need help regarding bash-completion. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bash-completion.