X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Ypz5/95KhH5NJiK+ aFKk/yQwa/8LfdF1Z6aaCbQViLVBdTw0NLOkVBOMUnTIAmJdbDdFtF4HQZIul92u LFzcb2kH40RW5jpBYQ6PQHCN8V6pqDSF/Le/HpivEkqV4kOQFfAWJiw3SiilfShw woodQOQKosjOnuliBNpTGcfL5eU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=SmrqRp2zhPNg3wOKpZ+DeM 0M4Ko=; b=lHR2mV2VFnv8TQkqn2LK33ipmoO+FA3x9zyO55217PA0yV7QV+HIRx 8r9uUEF/zEPPr/tSrq+f0B2yAUSceuWFxGYXB2N7QNzYZ6ZoFpAJU4R7ao2Ld/9V 1F+ntntby9bB5eAAFKmIAFAQ12EWmoLoWi3ua01+4SWdt27wrY1vM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-lf0-f66.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=EAMfqGd4gB3HjeRMt5F+jTYGcp8SA9h5Cgzj3T0jT5w=; b=HTyrhcVTDto8o60qWItilURDnLyJYDw0rMkq0mr/wPEJu63Ysxt67KlgwLiHiV1XcV jqwMI1W9pEZu/nCipe4Z1JJit+WErdI+2aADoo63vUUuOtXuvU40aOe/ca7lDuFebcQE G9yjJqCRfrzMTPVrmw9f3I6tgVkoAw/20kNK4BhwfBJLMo0DB+eW4WtDSYguRXtN+AwW QJrGPrUfSnLFiYjMDf+ySaPF2MYlIVy2tOi/MtNVjEZ4BBUpO5kvySu8wOw10/op/q7d 1TQ/gH9IviZ5Q1xpZFeqApzdhgdKVjentklfxnkKlGVhv2HTYzqSfNeu5SMxMlGdpmJx ZnOQ== X-Gm-Message-State: AD7BkJLRlPWn9HkxglU3AT0fKOWJ7oy+Gl5B2ht4xrdWokg0xu1pAVY/Ar0nlKUApsnQ6g== X-Received: by 10.194.78.129 with SMTP id b1mr12898712wjx.60.1459681733792; Sun, 03 Apr 2016 04:08:53 -0700 (PDT) Subject: Re: pass arguments enclosed with double quotes from bash shell to windows program To: cygwin AT cygwin DOT com References: From: Vlado Message-ID: <5700F9C4.4090108@gmail.com> Date: Sun, 3 Apr 2016 13:08:52 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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