Use seq, not `yes' to generate link target.

Otherwise, on systems (DJGPP) that emulate pipes using files,
this test would never complete, waiting for `yes' to terminate.
This commit is contained in:
Jim Meyering committed 2003-03-28 14:02:58 +00:00
1 parent e93c93de4e
commit 98458bfd36
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ fi
fail=0
symlink_name_lengths='1 15 16 31 32 59 60 63 64 127 128 255 256 511 512 1024'
for len in $symlink_name_lengths; do
name=`yes|tr '\n' y|head -c$len`
name=`seq 1 $len|tr -c x y |head -c$len`
# Record the names of symlinks that are successfully created.
ln -fs $name $len > /dev/null 2>&1 \
&& symlinks="$symlinks $len"