From 073c88c8f12ea75bfdbb9ccc5b505987ecc7815c Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 19 Jul 2019 12:34:44 -0400 Subject: ensure IFS is set to newline only --- factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'factor') diff --git a/factor b/factor index c40e0f4..ab6a72e 100755 --- a/factor +++ b/factor @@ -21,7 +21,7 @@ factor() { } if [ -z "$*" ]; then - while read -r i; do + while IFS=\n read -r i; do factor $i done else -- cgit v1.2.1