<div dir="ltr"><div><div><div><div><div><div><div>I have a favourite function/alias that I install on all Debian-based systems:<br><br></div>function dpkgs () { dpkg-query -W --showformat='${Installed-Size}\t${Package}\n' | sort -n; }<br>
<br></div>dpkgs outputs out a list of all packages on the system with their size, and sorts them from smallest to largest. Very useful on space-limited systems. I've been using it for years without problems. But in the last few days I've been playing with both Debian Jesse and Debian-Mint (with Cinnamon) inside VirtualBox. No problem with Debian, I just drop the function into /etc/bash.bashrc as usual. But on Mint it just prints:<br>
<br></div>Size<br></div>Size<br></div>Size<br>...<br><br></div>for as many packages as are installed. This is an indication of some form of bad parsing on the part of Mint, I can't remember exactly what (I've seen it before: the quoting in the command makes it hard to turn it into an alias). But what I'm really not getting is: why does this work on Debian and not on Mint? And just as odd, it works from the Mint command line, but not in the Mint /etc/bash.bashrc.<br>
<br>Perhaps they recompiled bash with different options? Or set the command line options differently? I'm not entirely sure how to check that, or why they would do that.<br></div><div><div><div><div><div><div><div>
<div>
<br>-- <br>Giles<br><a href="http://www.gilesorr.com/" target="_blank">http://www.gilesorr.com/</a><br><a href="mailto:gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>
</div></div></div></div></div></div></div></div></div>