From 6faaa698e4f215f0407eb022e2410e6702e8e2bd Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Tue, 8 Dec 1998 22:09:05 +0000 Subject: [PATCH] Use quotes around the first_line variable so C comments and other things that are misinterpreted by echo(1) aren't. PR: docs/8757 Submitted By: Takeshi OHASHI Sergei Laskavy --- share/examples/printing/ifhp | 2 +- share/examples/printing/psif | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/examples/printing/ifhp b/share/examples/printing/ifhp index 21e6643473e..373325b0e28 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 2a657e01aae..1a816f64888 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