summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/examples/printing/ifhp2
-rw-r--r--share/examples/printing/psif4
2 files changed, 3 insertions, 3 deletions
diff --git a/share/examples/printing/ifhp b/share/examples/printing/ifhp
index 21e6643..373325b 100644
--- a/share/examples/printing/ifhp
+++ b/share/examples/printing/ifhp
@@ -26,7 +26,7 @@ else
# Plain text or HP/PCL, so just print it directly; print a form
# at the end to eject the last page.
#
- echo $first_line && cat && printf "\f" && exit 2
+ echo "$first_line" && cat && printf "\f" && exit 2
fi
exit 2
diff --git a/share/examples/printing/psif b/share/examples/printing/psif
index 2a657e0..1a816f6 100644
--- a/share/examples/printing/psif
+++ b/share/examples/printing/psif
@@ -12,12 +12,12 @@ if [ "$first_two_chars" = "%!" ]; then
#
# PostScript job, print it.
#
- echo $first_line && cat && printf "\004" && exit 0
+ echo "$first_line" && cat && printf "\004" && exit 0
exit 2
else
#
# Plain text, convert it, then print it.
#
- ( echo $first_line; cat ) | /usr/local/bin/textps && printf "\004" && exit 0
+ ( echo "$first_line"; cat ) | /usr/local/bin/textps && printf "\004" && exit 0
exit 2
fi
OpenPOWER on IntegriCloud