summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmakecolumns.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/makecolumns.sh b/makecolumns.sh
index b73dffe..b15a2dd 100755
--- a/makecolumns.sh
+++ b/makecolumns.sh
@@ -82,7 +82,10 @@ do_processfile_version_3() {
82} 82}
83 83
84size() { 84size() {
85 stat -f %z `printf %0${filename_len}d "$1"` 85case `uname -s` in
86 *BSD|Darwin) stat -f %z `printf %0${filename_len}d "$1"`;;
87 *) stat -c %s `printf %0${filename_len}d "$1"`;;
88esac
86} 89}
87 90
88get_dword() { 91get_dword() {