cseverino / qlcolorcode

Automatically exported from code.google.com/p/qlcolorcode
0 stars 0 forks source link

$ in filename prevents preview #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A filename that contains the "$" character gets a quicklook of:
"cat {path/filename without $ and next character}: No such file or directory"

For instance:
filename:RESULTS$20090405.xml results in 
"cat /Users/me/Desktop/RESULTS0090405.xml: No such file or directory"

removing the QLColorCode bundle from the quicklook library folder prevents
the error message from occurring. 

[Desktop]$ qlmanage -p _RESULTS\$20090405.php 2>&1 | grep "Generator used"
2009-04-06 10:08:41.885 qlmanage[79969:5e03] [QL] Previewing
/Users/me/Desktop/RESULTS$20090405.xml. Content type UTI: public.xml.
Generator used: <QLGenerator /Library/QuickLook/QLColorCode.qlgenerator>

What steps will reproduce the problem?
1. Find file that QLColorCode is used to generate quicklook. Confirm
quicklook properly generated.
2. Rename file to include "$" before .extension. For example, results.xml
-> re$sults.xml.  Quicklook fails to generate.
3.

What is the expected output? What do you see instead?
Quicklook (only) contains
"cat {path/filename without $ and next character}: No such file or directory"
instead of color-syntaxed preview.

What version of the product are you using? On what operating system?
1.1.0 on 10.5.6

Please provide any additional information below.
Looks like spaces,?s,!,@,*,& etc are already escaped -- they wok properly.

Original issue reported on code.google.com by mlib...@gmail.com on 6 Apr 2009 at 5:17

GoogleCodeExporter commented 8 years ago
Thanks for the report.  I committed a fix to SVN (revision 74).

Original comment by n8gray@gmail.com on 10 Apr 2009 at 6:48