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

Fabien Bodard gambas.fr at ...176...
Thu Feb 11 12:37:08 CET 2010


Print "\"hello\" \"word\""

"hello" "word"

2010/2/11 richard terry <rterry at ...627...>:
> 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!!!!!
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>




More information about the Devel mailing list