Sibo Dong
f34173a048
bash-completion: localize words and cword variables
...
The words and cword variables are not localized in all Bash completion
scripts that call _init_completion.
cur, prev, words, and cword (and split if using the -s flag) are all
variables that should be localized in Bash completion scripts before
calling _init_completion (even if they don't otherwise appear in the
calling script). This is done for cur and prev, but not for words and
cword. Letting words and cword remain unlocalized may clobber variables
the user is using for other purposes, which is bad.
This issue can be resolved by declaring words and cword as local
variables.
Resolves #19188 .
2021-04-06 16:15:13 +02:00
Yu Watanabe
db9ecf0501
license: LGPL-2.1+ -> LGPL-2.1-or-later
2020-11-09 13:23:58 +09:00
Yu Watanabe
e2268fa437
bash-completion: do not ellipsize machine name
2020-01-10 12:29:02 +09:00
Zbigniew Jędrzejewski-Szmek
843cfcb15c
shell-completion: use 4 space indentation too
...
The same as in other places, indentation levels were all over the place.
2019-04-12 08:34:44 +02:00
Zbigniew Jędrzejewski-Szmek
d9b02e1697
tree-wide: drop copyright headers from frequent contributors
...
Fixes #9320 .
for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do
git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms'
done
2018-06-20 11:58:53 +02:00
Lennart Poettering
96b2fb93c5
tree-wide: beautify remaining copyright statements
...
Let's unify an beautify our remaining copyright statements, with a
unicode ©. This means our copyright statements are now always formatted
the same way. Yay.
2018-06-14 10:20:21 +02:00
Zbigniew Jędrzejewski-Szmek
7059062c2f
Add SPDX license headers to shell completion scripts
2017-11-19 19:08:15 +01:00
Evgeny Vereshchagin
a2accacb98
shell-completion: cgtop bash completion: add -r,--raw,-k,-P,--order
2015-09-21 17:33:00 +00:00
Evgeny Vereshchagin
79af4b6c1c
shell-completion: cgtop bash completion: -n,--iterations,-d,--delay require arg
2015-09-21 17:09:40 +00:00
Evgeny Vereshchagin
73b73b762c
shell-completion: update systemd-cgtop bash completion: --recursive
2015-09-21 16:54:58 +00:00
Evgeny Vereshchagin
96a6426f30
cgtop: add -M/--machine
2015-09-21 12:04:45 +00:00
Carlos Morata Castillo
b4f91f2ba3
Updates in bash autocompletions
...
Hi,
I did ./check-undocumented.sh -b (my script just submitted) and checked
the results.
Cheers.
2015-01-29 00:44:30 -05:00
Thomas Hindoe Paaboel Andersen
d9256bac4d
add bash completion for systemd-cgtop
2014-03-02 23:07:35 +01:00