Semicolons in plugin output

Andreas Ericsson ae at op5.se
Fri Mar 16 12:39:16 CET 2007


Jason Hoos wrote:
> Quick question - what is the reason behind the conversion of semicolons 
> in plug-in output to colons?  Is it to prevent issues with parsing of 
> status.dat?
> 

I believe this is because the plugin-output is usually sent to other commands
via the shell (fe, notifications). Semi-colon is a special shell character
and as such should never be sent there raw.

If the above explanation is the case, it would be better (and slightly
better, performance-wise) to do the semicolon-to-colon conversion when
the string is passed to the shell.

> The reason I ask is that I have some plug-ins that output HTML entities 
> (which all end in semicolons of course),

Why do they end in semicolons? I'd have thought a greater-than sign would
end HTML entities. Mind you, those are also special shell characters.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV




More information about the Developers mailing list