]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use seq, not `yes' to generate dir name.
authorJim Meyering <jim@meyering.net>
Fri, 28 Mar 2003 14:03:17 +0000 (14:03 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 28 Mar 2003 14:03:17 +0000 (14:03 +0000)
Otherwise, on systems (DJGPP) that emulate pipes using files,
this test would never complete, waiting for `yes' to terminate.

tests/rm/hash

index 946776252b9a385f0857943aa1f2db40775f95cc..f5cc14bd3927bceac391550c94c72d55caef0158 100755 (executable)
@@ -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