Comments (6)
Ah, this change is the problem:
b603535#diff-a4757074ff650000804fd3eaabe9b0a9e02e33040ca5b8afd4c0275fc5f3e136R1694
I don't remember why I did this change. I possibly tried to handle it in the awk
script and removed %[[:punct:]]
, but I later gave up handling it in the awk
script forgetting to restore %[[:punct:]]
.
from bash-completion.
Note that this also breaks interfaces that look like this veth0@veth1, _comp_compgen_available_interfaces returns the entire thing when it should only return veth0
from bash-completion.
Thank you for the information. I'd like to confirm. Do you mean "veth0@
or veth1@
"? Or is it actually veth0@veth1
? I don't think the latter was broken by the change because veth0@veth1
cannot be modified to veth0
by "${generated[@]/%[[:punct:]]/}"
, i.e. it was broken from the beginning if you mean veth0@veth1
.
from bash-completion.
Thank you for the information. I'd like to confirm. Do you mean "
veth0@
orveth1@
"? Or is it actuallyveth0@veth1
? I don't think the latter was broken by the change becauseveth0@veth1
cannot be modified toveth0
by"${generated[@]/%[[:punct:]]/}"
, i.e. it was broken from the beginning if you meanveth0@veth1
.
I mean the latter veth0@veth1
, I guess it was broken even before this change
from bash-completion.
Thanks! So, something like "${generated[@]%%[[:punct:]]*}"
might be better.
from bash-completion.
Oops, I somehow failed to follow the discussion here. It's likely things were broken also before this changes, but let's continue the discussion about the correct behavior in #1133.
from bash-completion.
Related Issues (20)
- Available interface completion strips too much
- _split_longopt rename is breaking downstream (3rd party) completion scripts HOT 5
- scp remote path completion no longer working since 2.12 HOT 4
- Readline colors command completions as files (red blinking text) HOT 3
- Bash completions causing syntax error near unexpected token `(' HOT 7
- Nit HOT 3
- xargs HOT 1
- 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
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.