From owner-freebsd-doc Thu Nov 19 03:29:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA16921 for freebsd-doc-outgoing; Thu, 19 Nov 1998 03:29:57 -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 DAA16905 for ; Thu, 19 Nov 1998 03:29:56 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id DAA08399; Thu, 19 Nov 1998 03:30:00 -0800 (PST) Date: Thu, 19 Nov 1998 03:30:00 -0800 (PST) Message-Id: <199811191130.DAA08399@freefall.freebsd.org> To: doc@FreeBSD.ORG From: Sergei Laskavy Subject: Re: docs/8757: psif in printing.sgml in Handbook Reply-To: Sergei Laskavy Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR docs/8757; it has been noted by GNATS. From: Sergei Laskavy To: ohashi@mickey.ai.kyutech.ac.jp Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: docs/8757: psif in printing.sgml in Handbook Date: 19 Nov 1998 14:21:38 +0300 ohashi@mickey.ai.kyutech.ac.jp writes: > >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 printf is not a fix A real fix is echo "$first_line" instead of echo $first_line -- FreeBSD Project: http://FreeBSD.org/docproj/ Vim: http://www.vim.org/ $_='$6C86:P$^P|2D<2GJPl=2D<2GJp82>3:E^>D<^DFn';tr#P-~\x20-O#\x20-~#;print To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message