public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Ziser, Jesse" <xezlec@yahoo.com>
To: cygwin@cygwin.com
Subject: Re: syntax for Cygwin bash invoking Win apps
Date: Tue, 22 Sep 2009 19:28:00 -0000	[thread overview]
Message-ID: <423515.75200.qm@web30205.mail.mud.yahoo.com> (raw)
In-Reply-To: <524600.35389.qm@web30208.mail.mud.yahoo.com>

More strange behavior when running Cygwin apps from a Windows prompt.  The quoting seems not to follow any rules that I can manage to track down:

The following are normal and expected, given that we discovered that all Cygwin apps do some kind of as-yet-undefined partial bash preprocessing on their arguments:

C:\> d:\cygwin\bin\echo \
\

C:\> d:\cygwin\bin\echo \\
\\

C:\> d:\cygwin\bin\echo 'a'
a

C:\> d:\cygwin\bin\echo '\a'
\a

The following don't seem to make any sense, even given that Cygwin apps do some kind of preprocessing on their arguments:

C:\> d:\cygwin\bin\echo '\'
'

C:\> d:\cygwin\bin\echo '\\'
\

C:\> d:\cygwin\bin\echo '\\\n'
[*** 15-second pause, every time! ***]
\\n

I have now given up on directly invoking Cygwin apps from Windows.  It seems it just can't be done with any consistency at all.  Instead, I'm going to try generating temporary shell scripts and executing them another way.  However, since the above may reveal a bug (especially the 15-second pause), I thought I should mention it to you folks.

Thanks,
Jesse



      

--
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

  reply	other threads:[~2009-09-22 19:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 15:57 Ziser, Jesse
2009-09-22 19:28 ` Ziser, Jesse [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-09-09 15:27 Ziser, Jesse
2009-09-09 15:57 ` Mark J. Reed
2009-09-09 16:05   ` Christopher Faylor
2009-09-09 16:10     ` Mark J. Reed
2009-09-09 16:31       ` Ziser, Jesse
2009-09-09 17:45       ` Christopher Faylor
2009-09-09 18:21         ` Ziser, Jesse
2009-09-09 18:41           ` Mark J. Reed
2009-09-09 16:10 ` Larry Hall (Cygwin)
2009-09-09  3:30 Ziser, Jesse
2009-09-09  4:31 ` Matt Wozniski
2009-09-09  4:40 ` Larry Hall (Cygwin)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=423515.75200.qm@web30205.mail.mud.yahoo.com \
    --to=xezlec@yahoo.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).