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
This commit is contained in:
Angus Leeming 2002-07-23 10:07:54 +00:00
parent b3fa703ea7
commit 0253a8b7b7
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
2002-07-18 Angus Leeming <leeming@lyx.org>
* 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 <voss@lyx.org>

View File

@ -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=$?