fold -s -wN would infloop for N < 8 with TABs in the input.
authorJim Meyering <jim@meyering.net>
Mon, 11 Aug 2003 14:35:52 +0000 (14:35 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 11 Aug 2003 14:35:52 +0000 (14:35 +0000)
commitd761e22b60aa42e427c7b4f295016cabb64c0099
tree6fa9de88177c82a33220ed965c667bceabd9f2e8
parent7f502e489c6ef9a3020a9ffc432fecb2c16df1fd
fold -s -wN would infloop for N < 8 with TABs in the input.
E.g., this would not terminate: printf 'a\tb' | fold -w2 -s

(fold_file): Move contents of `else'-block
out of conditional so it's used also for --spaces (-s).
src/fold.c