delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/02/15:00:16

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:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=CgAvZkiwjkQgkM07Tco2yW9WYZIBF
qFZanobpi8w8ojxkQcWpfGsfKHumQNH6a1KfAJBOHcw9P0Z37SPUMjXi+FWCNDGe
pHdlQfXkoo2CXPIRVg6+4b5ZiLnbs/BBG11LpGn61O/7CSwZz+vIknb+XlPnJF4T
DbnyqSKHoXwDuM=
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:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=xxwHKaEq4jfSIa/c6P2QvLNpZVU=; b=F/5
ncighQzs7D7huFNb9/X3dueFYdzL6DX763SvBkULFK2J4v2Ry9QK3zQkeGEk9+VU
YB+xsurD8goqG/tutA4JP7FHABbQIBctVU3lYEu7iJfMkLnNyiNJU4Yx54lyjzkV
2Jf25VhPSddTJyqur+ywMopqPegZ3j4qFW1z0nyA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=
X-HELO: mail-ig0-f180.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=mQUPBVBWMYyEmaE/VHEh8KwB9Rkgny40yNzE9lWbmV0=; b=Cj29sGAP+X27uNFijk6GSIb+21iEExJrLzQj4MIdKIx335ipnZZN/h+lPBlXvV+hC5 bcQ8riuRmGWIrf5pZ0qgiccv/rFBasY25n1Fk4PmddlpwWLffImL13zEo+t8S5r3y7wu 4JuShjN2CEQOmpwBNioSJ0Za188B4xuIW4JQguz+6ODSdxU7IGcT0lrvAdRpXaSAyGuy ngvWmG8oyJR0lQVSA6rl9rPCMuOm8MlItghyBpETtW7yELzd/09IZTUKqr53Fo9aQkzT IvmUrjYQ0fDvSggqFOR3fi9SaxkgMOZu2DQS5JSk7TmfLnShlRPUntocrRUV6FZ0KvsU jhgg==
X-Gm-Message-State: AD7BkJJ4yws844xPmVO2aDrWfv+LPi5PsYTo3fmtc90s3ZCaq0T3ukXJbIUjC22eT9BLyNDsFwljLbS9sU36Tg==
MIME-Version: 1.0
X-Received: by 10.107.33.7 with SMTP id h7mr13441951ioh.30.1459623595552; Sat, 02 Apr 2016 11:59:55 -0700 (PDT)
Date: Sat, 2 Apr 2016 14:59:55 -0400
Message-ID: <CAEF1h+WELCS56_5Up2UBKbQxAhj37Rs50p3gojSceLSfOHyu3w@mail.gmail.com>
Subject: pass arguments enclosed with double quotes from bash shell to windows program
From: Cary Lewis <cary DOT lewis AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019