[Konversation-devel] Small fix for "sysinfo"-script

Johannes Truschnigg johannes.truschnigg at gmx.at
Fri Dec 15 00:01:17 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Since my LVM2-volumes boast rather long device names, I noticed 
the "sysinfo"-script failing on linebreaks the `df`-utility produces to 
prettyprint its output in that case. GNU `df` features a switch, "-P" (for 
POSIX compatibility) which does not allow for each filesystems' statistics to 
take up more than one line. The trivial fix is to call `df -lP` instead of 
`df -l`; the awk-magic dealing with the rest of the stuff to calculate 
diskspace does not need to be tampered with.

The somewhat pathetic proposed patch is attached to this message, or to be 
found at http://gnulords.org/~colo/src/sysinfo.patch

Please note: This may break the script on systems lacking the GNU-version of 
`df`, as these versions may not feature the "-P"-flag. Since I don't use any 
such system, I cannot check this.
- -- 
with best regards:
- - Johannes Truschnigg ( johannes.truschnigg at gmx.at )

www: http://gnulords.org/~colo
phone: +43 650 2 133337
jabber: johannes.truschnigg at gmail.com

Please do not bother me with HTML-eMail or attachments. Thank you.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFgdfFnnUApj8OcoIRAolaAJwNWBgOBSUZuinLFEbRJrVKTSNHagCfT9ND
1nOUuYrnVHHLiQLYWdokxUI=
=j0Ss
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysinfo.patch
Type: text/x-diff
Size: 75 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/konversation-devel/attachments/20061215/8620964e/attachment.bin 


More information about the Konversation-devel mailing list