[Gambas-devel] a Dumb shell question - passing quoted text [solved]

richard terry rterry at ...627...
Thu Feb 11 12:19:40 CET 2010


On Thursday 11 February 2010 22:10:14 you wrote:
> Hi List,
> 
> I want to end up with this text to pass to the shell, and it contains
> quotation marks, I wondered how to do that.
> 
> wkhtmltopdf *.html /tmp/temp.pdf --toc --header-right "Page [page]"
>  --footer- center "- EasyGP Medical Records -" --footer-spacing 5
>  --footer-font-name "comic sans ms"
> 
> any help appreciated.
> 
> Regards
> 
> Richard
> 
To answer my own question, a single quote seems to work:


    shell_text &= " --header-right 'Page [page]' --footer-center '- EasyGP 
Medical Records -' --footer-spacing 5 --footer-font-name 'comic sans ms'"

Stupid me!!!!!




More information about the Devel mailing list