From 3f03b86d1f3dc643d2a88b816e889d291ddec5ea Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 21 Oct 2016 20:23:55 +0100 Subject: [PATCH] Oops, stop showbuildenv reading from stdin when run from a TTY. David spotted the problem I introduced with 8374c3c. Alter offset to process any arguments, falling back to stdin if none. --- tools/showbuildenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/showbuildenv b/tools/showbuildenv index 4645049a..10c29bb4 100755 --- a/tools/showbuildenv +++ b/tools/showbuildenv @@ -14,7 +14,7 @@ # It jumps through hoops with `|| true' despite not using `set -e'. offset () { - sed -e '/./s/^/ /' + sed -e '/./s/^/ /' "$@" } header () { -- 2.56.0