diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/functions b/functions new file mode 100644 index 0000000..1dc76d3 --- /dev/null +++ b/functions @@ -0,0 +1,9 @@ +#!/bin/sh + +# the calling conventions for stat(1) are highly system dependent +STAT='stat -c %s' # GNU stat(1) is the default since most people have it +case "`uname -s`" in + *BSD) STAT='stat -f %z';; + Minix) STAT='stat -size';; +esac + |