pass arguments enclosed with double quotes from bash shell to windows program

Vlado v.99cygwin@gmail.com
Sun Apr 3 11:09:00 GMT 2016


On 2.4.2016 20:59, Cary Lewis wrote:
> I need to start acrobat from a bash shell.
>
> Acrobat needs some of its parameters to be enclosed with double
> quotes. This is needed to automatically open and print a pdf.
>
> When I try to do that directly from a bash shell, I can't get it to
> pass arguments enclosed with the double quotes.
>
> It will do that for arguments with spaces in them, but for single word
> arguments, it doesn't
>
> If I try to do a \", then it passes the \" to the windows app.
>
> The only workaround I've come up with so far, is to create a batch
> file in the bash shell, and then invoke it with a cmd /c batch.bat
>
> But there should be a way to control how arguments are passed.
>
> Does anyone have any ideas.
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
> .
>
Hi Cary Lewis,

maybe this helps:
https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/

Vlado

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list