From owner-freebsd-doc Wed Nov 18 22:19:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA16182 for freebsd-doc-outgoing; Wed, 18 Nov 1998 22:19:59 -0800 (PST) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA16175 for ; Wed, 18 Nov 1998 22:19:58 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA20460; Wed, 18 Nov 1998 22:20:02 -0800 (PST) Received: from ateken2.mickey.ai.kyutech.ac.jp (ateken2.mickey.ai.kyutech.ac.jp [131.206.21.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA15859 for ; Wed, 18 Nov 1998 22:13:33 -0800 (PST) (envelope-from ohashi@ateken2.mickey.ai.kyutech.ac.jp) Received: (from ohashi@localhost) by ateken2.mickey.ai.kyutech.ac.jp (8.9.1/8.9.1) id PAA17241; Thu, 19 Nov 1998 15:14:12 +0900 (JST) (envelope-from ohashi) Message-Id: <199811190614.PAA17241@ateken2.mickey.ai.kyutech.ac.jp> Date: Thu, 19 Nov 1998 15:14:12 +0900 (JST) From: ohashi@mickey.ai.kyutech.ac.jp Reply-To: ohashi@mickey.ai.kyutech.ac.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: docs/8757: psif in printing.sgml in Handbook Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8757 >Category: docs >Synopsis: psif expands unexpected wildcard characters in some files. >Confidential: yes >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 18 22:20:01 PST 1998 >Last-Modified: >Originator: Takeshi Ohashi >Organization: Dept. of AI, Kyushu Inst. of Tech., Iizuka, JAPAN. >Release: FreeBSD 3.0-RELEASE i386 >Environment: FreeBSD ateken2.mickey.ai.kyutech.ac.jp 3.0-RELEASE FreeBSD 3.0-RELEASE #1: Sun Oct 25 16:04:46 JST 1998 root@ateken2.mickey.ai.kyutech.ac.jp:/usr/src/sys/compile/ATEKEN2 i386 >Description: psif expands unexpected wildcard characters in some files. For example, if C source codes start with "/*" characters, it will be expanded files in the root directory. To avoide this unexpected expansion, replace printf with echo. >How-To-Repeat: Install psif as an input filter for a PS printer % cat "/* comment */" | lpr or % cat "/* comment */" | /usr/local/libexec/psif |gs - >Fix: --- printing.sgml.orig Thu Nov 19 14:58:11 1998 +++ printing.sgml Thu Nov 19 14:59:11 1998 @@ -2245,13 +2245,13 @@ # # PostScript job, print it. # - echo $first_line && cat && printf "\004" && exit 0 + printf "%s\n" "$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 + ( printf "%s\n" "$first_line"; cat ) | /usr/local/bin/textps && printf "\004" && exit 0 exit 2 fi >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message