Commit 4c0e72a
committed
Use stable _init_completion API in bash completion
Replace private bash-completion functions (`_comp__split_longopt`,
`_get_cword`) with the stable public `_init_completion` API. The private
functions were renamed in bash-completion 2.12, breaking tab completion
on systems with either the old or new version. `_init_completion` has been
stable since bash-completion 2.0 and works across all versions.
Resolves: https://issues.redhat.com/browse/RHEL-1451211 parent 4c34b12 commit 4c0e72a
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
0 commit comments