Date: Thu, 19 Nov 1998 03:30:00 -0800 (PST) From: Sergei Laskavy <laskavy@Gambit.Msk.SU> To: doc@FreeBSD.ORG Subject: Re: docs/8757: psif in printing.sgml in Handbook Message-ID: <199811191130.DAA08399@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/8757; it has been noted by GNATS. From: Sergei Laskavy <laskavy@Gambit.Msk.SU> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811191130.DAA08399>