Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fold: infinite loop for -bs * For some input files, fold would get stuck in a loop printing "\n when run with -b and -s options * In this case fold_file_byte() is called instead of fold_file() * The regular expressions $soft and $hard are expected to modify the length of $_ if they match * The while-loop controlled by $_ length never terminated if neither regex matched * Adding a condition to break out of the loop for no-match prevents the infinite loop * remove temporary variable
- Loading branch information