From 0253a8b7b77d5de9fece4107fa7f20077e6d6af9 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 23 Jul 2002 10:07:54 +0000 Subject: [PATCH] Use "\\" rather than "[\]" by using '' not "" to delimit the expression. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4759 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 3 ++- lib/scripts/lyxpreview2ppm.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 08c14db0b3..ec6ee826ce 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,6 +1,7 @@ 2002-07-18 Angus Leeming - * scripts/lyxpreview2ppm.sh: more efficient RE. + * scripts/lyxpreview2ppm.sh: more efficient RE and change to '' so that + the shell does not escape "\\". 2002-07-22 Herbert Voss diff --git a/lib/scripts/lyxpreview2ppm.sh b/lib/scripts/lyxpreview2ppm.sh index 52f9c4556f..9f75c1f0ca 100644 --- a/lib/scripts/lyxpreview2ppm.sh +++ b/lib/scripts/lyxpreview2ppm.sh @@ -61,7 +61,7 @@ if [ ${STATUS} -ne 0 ]; then # preview.sty has known problems with the showlabels option, # so remove it and try again. # This "fix" should be removed once preview-latex 0.73 is released. - sed -e "/^[\]usepackage/,/{preview}$/s/,showlabels//" \ + sed -e '/^\\usepackage/,/{preview}$/s/,showlabels//' \ < ${TEXFILE} > .${TEXFILE} cmp -s ${TEXFILE} .${TEXFILE} STATUS=$? -- 2.39.5