New commits:
commit 5e8d97ba1b5c7154e8b4606a735a44a854c8cc4a
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
gaze: gaze size could bark on files with glob paterns in their name #14183
diff --git a/ChangeLog b/ChangeLog
index cfa74e3..36f5a4a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2008-02-01 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libcodex: bail out of codex_check_cache if the grimoire dir is not
listable (executable) #13508
+ * gaze: gaze size could bark on files with glob paterns in their name
#14183
2008-01-31 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libmisc: added error_message, a message() that also outputs to
stderr
diff --git a/usr/sbin/gaze b/usr/sbin/gaze
index 467f5f1..e1e3942 100755
--- a/usr/sbin/gaze
+++ b/usr/sbin/gaze
@@ -1616,9 +1616,9 @@ function gaze_show_size () {
message "No install log for $spell ($file)"
continue
fi
- for each in $(<$file); do
- test -f $each && echo $each
- done | xargs du -b |
+ while read each; do
+ test -f "$each" && echo $each
+ done < $file | xargs du -b |
awk '{ x += $1 }
END { print "'$spell' -> " x " bytes ("int(x/1024+0.5)" K,
"int(x/1024/1024+0.5)" M) in " NR " files." }'
done
[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (5e8d97ba1b5c7154e8b4606a735a44a854c8cc4a),
Jaka Kranjc, 02/01/2008