From 3a97dd1cfcebeb6e8cc2f6b2966fe5af415da265 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 27 Jul 2022 15:40:52 -0500 Subject: Detect getline() errors --- shin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shin b/shin index b966091..9ba488b 100755 --- a/shin +++ b/shin @@ -12,7 +12,7 @@ FNR == 1 { outfile = FILENAME; sub(/in$/, "", outfile) } { print($0) > outfile } /^# outfile + while ((getline l < inclfile) > 0) print(l) > outfile close(inclfile) sub(/", $0) print > outfile -- cgit 1.4.1-21-gabe81