]> diplodocus.org Git - nmh/blobdiff - tools/showbuildenv
Protect showbuildenv's headers from glob expansion.
[nmh] / tools / showbuildenv
index e12bfe3..93f5efe 100755 (executable)
@@ -9,13 +9,17 @@
 # This script should *only* report basic information about the build
 # environment, and only that necessary to reproduce the build
 # environment.
+#
+# FIXME: Document meaning of script's exit status, if any.
+# It jumps through hoops with `|| true' despite not using `set -e'.
 
 offset () {
-    sed -e 's/^/    /'
+    sed -e '/./s/^/    /'
 }
+
 header () {
     echo
-    echo $*
+    echo "$@"
     echo
 }