# with coreutils-8.28 and earlier, the -S option would infloop with
# matches of zero-length.
-["S-infloop", '-S ^', {IN=>"a\n"}, {EXIT=>1},
- {ERR_SUBST=>'s/^.*reg.*ex.*length zero.*$/regexlzero/'},
- {ERR=>"regexlzero\n"}],
+["S-infloop", '-S \^', {IN=>"a\n"}, {EXIT=>1},
+ {ERR_SUBST=>'s/^.*reg.*ex.*length zero.*$/regexlzero/'},
+ {ERR=>"regexlzero\n"}],
);
@Tests = triple_test \@Tests;
# Ensure rename passes complete.
# coreutils-8.28 did not do the decreasing length rename
# which may have leaked the length of the removed file name
-printf 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_. |
-sed 's/./&\n/g' | xargs touch || framework_failure_ # test level exhaustion
+NL="
+"
+printf 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_ |
+sed "s/./&\\$NL/g" | xargs touch || framework_failure_ # test level exhaustion
touch test 000 || framework_failure_ # test level increment
shred -vu test 2>out || fail=1
cat <<\EOF >exp || framework_failure_