diff --git a/bin/disk-available b/bin/disk-available index e9ead3e3..9e7b633b 100755 --- a/bin/disk-available +++ b/bin/disk-available @@ -20,7 +20,7 @@ PKG="byobu" if [ "$1" = "--detail" ]; then - df -h + df -h -P exit 0 fi @@ -35,5 +35,5 @@ fi # Default to /, but let users override [ -r "$HOME/.$PKG/disk" ] && MP=`cat "$HOME/.$PKG/disk"` || MP="/" -d=`df -h "$MP" | tail -n 1 | awk '{print $2}'` +d=`df -h -P "$MP" | tail -n 1 | awk '{print $2}'` printf "\005{= MW}%sB%s\005{-}%s" "$d" "$comma" "$whitespace" diff --git a/bin/disk-used b/bin/disk-used index 9b6a9263..582db2d8 100755 --- a/bin/disk-used +++ b/bin/disk-used @@ -20,7 +20,7 @@ PKG="byobu" if [ "$1" = "--detail" ]; then - df -h + df -h -P exit 0 fi @@ -32,5 +32,5 @@ fi # Default to /, but let users override [ -r "$HOME/.$PKG/disk" ] && MP=`cat "$HOME/.$PKG/disk"` || MP="/" -used=`df -h "$MP" | tail -n 1 | sed "s/%.*$/%/" | sed "s/^.* //"` +used=`df -h -P "$MP" | tail -n 1 | sed "s/%.*$/%/" | sed "s/^.* //"` printf "\005{= MW}%s\005{-}%s" "$used" "$whitespace" diff --git a/debian/changelog b/debian/changelog index 4e90dd7e..d89bc9b0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,8 +6,9 @@ byobu (2.9) unreleased; urgency=low in iwconfig and ifconfig paths * bin/cpu-count: performance improvement, use getconf * bin/cpu-freq: performance improvement, simplify pipes + * bin/disk-*: use the POSIX output format - -- Dustin Kirkland Mon, 08 Jun 2009 11:38:05 -0500 + -- Dustin Kirkland Mon, 08 Jun 2009 11:40:33 -0500 byobu (2.8-0ubuntu1) karmic; urgency=low