From: Ralph Corderoy Date: Fri, 21 Oct 2016 19:23:55 +0000 (+0100) Subject: Oops, stop showbuildenv reading from stdin when run from a TTY. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/3f03b86d1f3dc643d2a88b816e889d291ddec5ea 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. --- 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 () {