summaryrefslogtreecommitdiff
path: root/tests/rm/hash
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-28 14:03:17 +0000
committerJim Meyering <jim@meyering.net>2003-03-28 14:03:17 +0000
commitcf0fa2d930de1609d1b851566b3ca7fd38185584 (patch)
tree81df14902ad5111025a73e99ac317c709f80f6fd /tests/rm/hash
parent98458bfd368ef9d85e6e210be5d547d2ccbca8c9 (diff)
downloadcoreutils-cf0fa2d930de1609d1b851566b3ca7fd38185584.tar.xz
Use seq, not `yes' to generate dir name.
Otherwise, on systems (DJGPP) that emulate pipes using files, this test would never complete, waiting for `yes' to terminate.
Diffstat (limited to 'tests/rm/hash')
-rwxr-xr-xtests/rm/hash2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rm/hash b/tests/rm/hash
index 946776252..f5cc14bd3 100755
--- a/tests/rm/hash
+++ b/tests/rm/hash
@@ -21,7 +21,7 @@ cd $tmp
# Create a hierarchy with 3*26 leaf directories, each at depth 153.
echo "$0: creating 78 trees, each of depth 153; this will take a while..." >&2
-y=`yes |head -n 150 |tr '\012' /`
+y=`seq 1 150|tr -sc '\n' y|tr '\n' /`
for i in 1 2 3; do
for j in a b c d e f g h i j k l m n o p q r s t u v w x y z; do
mkdir -p t/$i/$j/$y || framework_failure=1