From 560847bd8c5a8f16b0262516603a812ea2c31f7f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 27 Mar 2022 21:50:01 -0400 Subject: simplify --- quotehostinfo | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'quotehostinfo') diff --git a/quotehostinfo b/quotehostinfo index c014e28..f6cf064 100755 --- a/quotehostinfo +++ b/quotehostinfo @@ -1,10 +1,8 @@ #!/bin/sh -fil=/tmp/quotehostinfo$$ -echo compiled: $(date) > $fil -make -s tellcc >> $fil - -echo host: $(uname -m) $(uname -s) $(uname -r) >> $fil -gcc -v 2>&1 | tail -1 >> $fil - -echo \"$(cat $fil | sed 's/.*/&\\\\n/')\" | sed 's/\\n /\\n/g' -rm $fil +printf '"compiled: %s\\n%s\\nhost: %s %s %s\\n%s"\n' \ + "$(date)" \ + "$(make -s tellcc)" \ + "$(uname -m)" \ + "$(uname -s)" \ + "$(uname -r)" \ + "$(gcc -v 2>&1 | tail -1)" -- cgit v1.2.1