deri pushed a commit to branch master
in repository groff.
commit 1e1bcb5ced9a479ce97ab6c6370ccec0d8951d01
Author: Deri James <[email protected]>
Date: Thu Mar 6 22:36:26 2014 +0000
Missing RE escape in grep.
* src/devices/gropdf/pdfmom.pl: Escape '\' dot in grep RE.
---
ChangeLog | 6 ++++++
src/devices/gropdf/pdfmom.pl | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1a6fa39..e55d7d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-03-06 Deri James <[email protected]>
+
+ Missing RE escape in grep.
+
+ * src/devices/gropdf/pdfmom.pl: Escape '\' dot in grep RE.
+
2014-02-26 Bernd Warken <[email protected]>
* src/roff/grog/grog.pl: Add detection of `gperl' to `grog'.
diff --git a/src/devices/gropdf/pdfmom.pl b/src/devices/gropdf/pdfmom.pl
index c9c8e58..d8ccf08 100644
--- a/src/devices/gropdf/pdfmom.pl
+++ b/src/devices/gropdf/pdfmom.pl
@@ -122,7 +122,7 @@ if ($readstdin)
if ($dev eq 'pdf')
{
- 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");
}
elsif ($dev eq 'ps')
{
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit