explainshell icon indicating copy to clipboard operation
explainshell copied to clipboard

dpkg man page not parsed correctly

Open wangqr opened this issue 8 years ago • 0 comments

See: https://explainshell.com/explain?cmd=dpkg+-l+%27linux-*%27 https://explainshell.com/explain?cmd=dpkg+-x+busybox_1%253a1.22.0-15ubuntu1_amd64.deb+.

In man dpkg there are some sections like:

       dpkg-query actions
              See dpkg-query(1) for more information about the following actions.

              -l, --list package-name-pattern...
                  List packages matching given pattern.
              -s, --status package-name...
                  Report status of specified package.
              -L, --listfiles package-name...
                  List files installed to your system from package-name.
              -S, --search filename-search-pattern...
                  Search for a filename from installed packages.
              -p, --print-avail package-name...
                  Display details about package-name, as found in
                  /var/lib/dpkg/available. Users of APT-based frontends
                  should use apt-cache show package-name instead.

It seems that explainshell will only recognize the first option in the section and output the whole section for that option.

wangqr avatar Sep 05 '17 05:09 wangqr