diff --git a/share/examples/printing/ifhp b/share/examples/printing/ifhp index 21e6643473e3..373325b0e285 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 2a657e01aae7..1a816f64888b 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