From: Jim Meyering Date: Fri, 28 Mar 2003 14:03:17 +0000 (+0000) Subject: Use seq, not `yes' to generate dir name. X-Git-Tag: v4.5.12~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf0fa2d930de1609d1b851566b3ca7fd38185584;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/rm/hash b/tests/rm/hash index 946776252b..f5cc14bd39 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