mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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:
1 parent
e93c93de4e
commit
98458bfd36
1 file changed
+1
-1
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user