| Summary: | app-shells/bash-completion: clean handling of extglob and other shopt settings | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
| Component: | Current packages | Assignee: | Gentoo Shell Tools project <shell-tools> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | enhancement | CC: | fauli, mgorny |
| Priority: | High | ||
| Version: | 2008.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://alioth.debian.org/tracker/index.php?func=detail&aid=311628&group_id=100114&atid=413095 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Martin von Gagern
2009-04-28 16:31:27 UTC
I don't have a problem with the change, however, you will have to get upstream to accept your patches. I am not about to maintain a slew of downstream patches for this. Sorry. (In reply to comment #1) > I don't have a problem with the change, however, you will have to get upstream > to accept your patches. I am not about to maintain a slew of downstream patches > for this. Sorry. I understand. Submitted upstream, see URL. Great, thanks for your research and work here. (In reply to comment #2) > (In reply to comment #1) > > I don't have a problem with the change, however, you will have to get upstream > > to accept your patches. I am not about to maintain a slew of downstream patches > > for this. Sorry. > > I understand. Submitted upstream, see URL. What is the outcome now? (In reply to comment #4) > What is the outcome now? No reply at all on the upstream bug report, as you can see. I've tried to get their attention in the corresponding IRC channel a few times, but no success there either. Maybe one of you has a better idea or regular contact with them? In the meantime, I've found that extglob has to be enabled at the time a function is defined as well, not only at execution time. For some consructs, like [[ $var == @(some|pat|tern) ]], having it set at definition time is enough, while for others, like case, the extglob shopt has to be set at runtime as well. http://thread.gmane.org/gmane.comp.shells.bash.bugs/13518 I've had a discussion about this with the bash maintainer, Chet Ramey. The difference between [[ == ]] and case is deliberate and going to stay. He suggests that bashcomp functions should simply use extglob patterns, and it's up to the users using such completions to have extglob on. I'm not sure I agree, I'd still prefer functions to work no matter the local shopt settings. http://thread.gmane.org/gmane.comp.shells.bash.bugs/13518/focus=13535 *** Bug 259835 has been marked as a duplicate of this bug. *** Feel free to reopen with an update if there's anything that still needs doing here. |