projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d40e734
)
bash-completion: use default completion for redirect operators
author
Frantisek Sumsal
<frantisek@sumsal.cz>
Sat, 23 Mar 2019 20:49:17 +0000
(21:49 +0100)
committer
Michael Biebl
<biebl@debian.org>
Tue, 20 Aug 2019 11:50:42 +0000
(12:50 +0100)
(cherry picked from commit
1413763ea540a897852494259cb949fe01e1e7e7
)
Gbp-Pq: Name bash-completion-use-default-completion-for-redirect-opera.patch
shell-completion/bash/journalctl
patch
|
blob
|
history
diff --git
a/shell-completion/bash/journalctl
b/shell-completion/bash/journalctl
index bcd4533a63597b931bd54f2a011e24d26d839124..5a6a3da607b5de04571b6e61c8e1d84c88945265 100644
(file)
--- a/
shell-completion/bash/journalctl
+++ b/
shell-completion/bash/journalctl
@@
-52,6
+52,13
@@
_journalctl() {
--vacuum-size --vacuum-time --vacuum-files --output-fields'
)
+ # Use the default completion for shell redirect operators
+ if __contains_word "$prev" '>' '>>' '&>'; then
+ compopt -o filenames
+ COMPREPLY=( $(compgen -f -- "$cur") )
+ return 0;
+ fi
+
if __contains_word "$prev" ${OPTS[ARG]} ${OPTS[ARGUNKNOWN]}; then
case $prev in
--boot|-b)