From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93032 invoked by alias); 3 Apr 2016 11:09:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 93019 invoked by uid 89); 3 Apr 2016 11:09:07 -0000 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 Received: from mail-lf0-f66.google.com (HELO mail-lf0-f66.google.com) (209.85.215.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 03 Apr 2016 11:08:57 +0000 Received: by mail-lf0-f66.google.com with SMTP id p81so12624691lfb.3 for ; Sun, 03 Apr 2016 04:08:57 -0700 (PDT) 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) Received: from [192.168.88.32] (ip133.213-181-130.pegonet.sk. [213.181.130.133]) by smtp.gmail.com with ESMTPSA id h7sm8114780wmf.9.2016.04.03.04.08.52 for (version=TLSv1/SSLv3 cipher=OTHER); 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@cygwin.com References: From: Vlado Message-ID: <5700F9C4.4090108@gmail.com> Date: Sun, 03 Apr 2016 11:09:00 -0000 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 X-SW-Source: 2016-04/txt/msg00032.txt.bz2 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