public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Challenge: a VERY strange problem with command substitution in bash
Date: Tue, 11 Jul 2017 23:22:00 -0000	[thread overview]
Message-ID: <59655da7.c3abca0a.1036d.610b@mx.google.com> (raw)
In-Reply-To: <93b0a4e1-78eb-798e-9946-cd38ab288cce@wagner.is>

On Tue, 11 Jul 2017 21:12:14, =?UTF-8?Q?J=c3=bcrgen_Wagner?= wrote:
> 2. Windows 10, Version 1703, Build 15063.413 on a Dell 64bit platform,
> latest 64bit Cygwin (CYGWIN_NT-10.0, 2.8.1(0.312/5/3) 2017-07-03 14:11
> x86_64 Cygwin) /bin/bash
> 
> $ value=3D"$( date | cat )"; echo "$? <$value>"
> 127 <>

For what it is worth, I cannot repro this with Windows 7:

    $ value="$( date | cat )"; echo "$? <$value>"
    0 <Tue, Jul 11, 2017  6:16:21 PM>

Also, your example is poor. As you well know, "cat" in this case should be a
noop:

    $ date | cat
    Tue, Jul 11, 2017  6:20:53 PM

Perhaps you can provide a sane example that fails? Something like:

    $ date | sed s/M/Z/
    Tue, Jul 11, 2017  6:21:46 PZ


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

  parent reply	other threads:[~2017-07-11 23:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-11 19:12 Jürgen Wagner
2017-07-11 19:16 ` Jürgen Wagner
2017-07-11 20:40   ` Jürgen Wagner
2017-07-11 23:22 ` Steven Penny [this message]
2017-07-11 23:24 ` Richard Beels via cygwin
     [not found] ` <59655e58.d532240a.ae3d8.4253SMTPIN_ADDED_MISSING@mx.google.com>
2017-07-12  6:08   ` Wouter van Doorn
     [not found] ` <20170711232506.02CE91C3666@atlantis.udag.de>
2017-07-28 18:03   ` Jürgen Wagner
2017-12-04 13:01 Erik Haukjær Andersen
2017-12-04 13:22 ` David Macek
2017-12-04 21:41   ` Brian Inglis
2017-12-04 20:20 ` Andrey Repin

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=59655da7.c3abca0a.1036d.610b@mx.google.com \
    --to=svnpenn@gmail.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).