summaryrefslogtreecommitdiff
path: root/tests/ls/block-size.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ls/block-size.sh')
-rwxr-xr-xtests/ls/block-size.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ls/block-size.sh b/tests/ls/block-size.sh
index 2ae5a0c5..c4861629 100755
--- a/tests/ls/block-size.sh
+++ b/tests/ls/block-size.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Exercise ls --block-size and related options.
-# Copyright (C) 2011-2013 Free Software Foundation, Inc.
+# Copyright (C) 2011-2014 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -30,18 +30,18 @@ for size in 1024 4096 262144; do
done
touch -d '2001-01-01 00:00' file* || fail=1
-size_etc='s/[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'
+size_etc='s/[^ ]* *[^ ]* *//'
-ls -l * | sed "$size_etc" >../out || fail=1
-POSIXLY_CORRECT=1 ls -l * | sed "$size_etc" >>../out || fail=1
-POSIXLY_CORRECT=1 ls -k -l * | sed "$size_etc" >>../out || fail=1
+ls -og * | sed "$size_etc" >../out || fail=1
+POSIXLY_CORRECT=1 ls -og * | sed "$size_etc" >>../out || fail=1
+POSIXLY_CORRECT=1 ls -k -og * | sed "$size_etc" >>../out || fail=1
for var in BLOCKSIZE BLOCK_SIZE LS_BLOCK_SIZE; do
for blocksize in 1 512 1K 1KiB; do
(eval $var=$blocksize && export $var &&
- ls -l * &&
- ls -l -k * &&
- ls -l -k --block-size=$blocksize *
+ ls -og * &&
+ ls -og -k * &&
+ ls -og -k --block-size=$blocksize *
) | sed "$size_etc" >>../out || fail=1
done
done