Bug#913222: journalctl: bash-completion: incorrect sorting of --priority arguments

Paul Wise pabs at debian.org
Thu Nov 8 11:34:45 GMT 2018


Package: systemd
Version: 239-11
Severity: minor
File: /usr/share/bash-completion/completions/journalctl

The completion of the --priority arguments is sorted in alphabetical
order instead of numerical order. The definition of the priorities is
in the correct order in the completion source but since readline sorts
completion arguments by default the sorting gets changed. The bash manual page says there is a nosort compgen option that might fix this.

$ journalctl --priority <TAB>
alert    crit     debug    emerg    err      info     notice   warning  

$ grep __syslog_priorities= /usr/share/bash-completion/completions/journalctl
__syslog_priorities=(emerg alert crit err warning notice info debug)

$ man journalctl | grep -A3 'The log levels are'
           the form FROM..TO. The log levels are the usual syslog log levels
           as documented in syslog(3), i.e.  "emerg" (0), "alert" (1),
           "crit" (2), "err" (3), "warning" (4), "notice" (5), "info" (6),
           "debug" (7). If a single log level is specified, all messages with

$ man syslog | tr -s \\n | grep -EA8 'The +levels +are'
       This determines the importance of the  message.   The  levels  are,  in
       order of decreasing importance:
       LOG_EMERG      system is unusable
       LOG_ALERT      action must be taken immediately
       LOG_CRIT       critical conditions
       LOG_ERR        error conditions
       LOG_WARNING    warning conditions
       LOG_NOTICE     normal, but significant, condition
       LOG_INFO       informational message

-- Package-specific info:

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  adduser          3.118
ii  libacl1          2.2.52-3+b1
ii  libapparmor1     2.13.1-3+b1
ii  libaudit1        1:2.8.4-2
ii  libblkid1        2.32.1-0.1
ii  libc6            2.27-8
ii  libcap2          1:2.25-1.2
ii  libcryptsetup12  2:2.0.5-1
ii  libgcrypt20      1.8.4-3
ii  libgnutls30      3.5.19-1+b1
ii  libgpg-error0    1.32-3
ii  libidn11         1.33-2.2
ii  libip4tc0        1.8.1-2
ii  libkmod2         25-1
ii  liblz4-1         1.8.2-1
ii  liblzma5         5.2.2-1.3
ii  libmount1        2.32.1-0.1
ii  libpam0g         1.1.8-3.8
ii  libseccomp2      2.3.3-3
ii  libselinux1      2.8-1+b1
ii  libsystemd0      239-11
ii  mount            2.32.1-0.1
ii  procps           2:3.3.15-2
ii  util-linux       2.32.1-0.1

Versions of packages systemd recommends:
ii  dbus            1.12.10-1
ii  libpam-systemd  239-11

Versions of packages systemd suggests:
ii  policykit-1        0.105-21
ii  systemd-container  239-11

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.132
ii  udev             239-11

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20181108/c4d23fdb/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list