diff options
author | Rarylson Freitas <rarylson@gmail.com> | 2016-12-08 18:49:58 -0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-12-08 21:49:58 +0100 |
commit | 26aae6b5834e1342d9b95a894a5bb24159b367bf (patch) | |
tree | 501374c4c568de71a2043994bd0ff27d774eec53 /plugins/ubuntu/ubuntu.plugin.zsh | |
parent | 937a7f66ef852c2d2a5da7907504f6d61ed92433 (diff) | |
download | zsh-26aae6b5834e1342d9b95a894a5bb24159b367bf.tar.gz zsh-26aae6b5834e1342d9b95a894a5bb24159b367bf.tar.bz2 zsh-26aae6b5834e1342d9b95a894a5bb24159b367bf.zip |
Fix (plugins debian and ubuntu): `apt-history list` using `zgrep` (#5695)
Changing from `zcat` to `zgrep` because some `zcat` implementations do not work
if the file is not compressed.
Diffstat (limited to 'plugins/ubuntu/ubuntu.plugin.zsh')
-rw-r--r-- | plugins/ubuntu/ubuntu.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh index ffde284fe..030af0693 100644 --- a/plugins/ubuntu/ubuntu.plugin.zsh +++ b/plugins/ubuntu/ubuntu.plugin.zsh @@ -108,7 +108,7 @@ apt-history () { awk '{print $4"="$5}' ;; list) - zcat $(ls -rt /var/log/dpkg*) + zgrep --no-filename '' $(ls -rt /var/log/dpkg*) ;; *) echo "Parameters:" |