problems with escaped double-quotes in enscript syntax highlighting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
enscript (Debian) |
Fix Released
|
Unknown
|
|||
enscript (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: enscript
Take the following script:
#!/usr/bin/ksh
echo \"foo=bar\
echo "and here's some other stuff"
for i in foo bar baz quux
do
echo $i
done
...which I've also attached. In gview, those escaped double-quotes are handled properly, and syntax hightlighting works. With enscript, using either sh or ksh highlighting, the first double-quote turns on the highlighting for "this is quoted stuff", but the rest are ignored until the first unescaped double-quote is encountered.
The enscript command line was "cat enscriptbug | enscript --highlight=ksh --color -r -p enscriptbug.ps"
I hit this on Breezy yesterday and confirmed it on Dapper today.
Attached are the script, a screenshot of how gview renders it, and the output of enscript.
$ apt-cache policy enscript
enscript:
Installed: 1.6.4-7
Candidate: 1.6.4-7
Version table:
*** 1.6.4-7 0
500 http://
100 /var/lib/
Changed in enscript: | |
status: | Unknown → Fix Released |
The script I wrote to reproduce the bug. (The original script in which I encountered the error contains proprietary company stuff).