> cc: groff@gnu.org > Date: Thu, 11 Jun 2015 15:18:17 +0100 > From: Ralph Corderoy <ra...@inputplus.co.uk> > > Hi Eli, > > > - system("groff -Tpdf -dPDF.EXPORT=1 -mom -z $cmdstring 2>&1 | grep > > '^\.ds' | groff -Tpdf -mom - $preconv $cmdstring"); > > + system("groff -Tpdf -dPDF.EXPORT=1 -mom -z $cmdstring 2>&1 | grep > > \"^\.ds\" | groff -Tpdf -mom - $preconv $cmdstring"); > > This looks wrong both times. :-) It's a double-quoted string in perl, > so backslash is interpreted as an escape thus \. needlessly escapes the > non-special dot giving just a dot and grep sees `^.ds' for the pattern > AFAICS.
Could very well be. Perl is largely a read-only language for me. The point is that '...' quoting cannot be used, unless the shell is a Posix shell. I suggest "..." quoting instead. Thanks.