444
444
if test "X${echo_test_string+set}" != Xset; then
445
445
# find a string as large as possible, as long as the shell can cope with it
446
446
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
447
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
447
# expected sizes: less than 2kB, 1kB, 512 bytes, 16 bytes, ...
448
448
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
449
449
echo_test_string=`eval $cmd` &&
450
450
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null