Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Dave Taylor Newsgroups: gnu.bash.bug Subject: Cygwin bash build- command substitution fails Date: Tue, 17 Dec 2019 13:00:48 -0800 Lines: 59 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1576621379 22893 209.51.188.17 (17 Dec 2019 22:22:59 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nXTb78eV08eu9LqR4exI8aBQ4cvZOJIiciSRSrpE6to=; b=LwiyggXKbbkCcXYEf48zm2Kpr4zDrn6bOuLiPGlkegcrBPzB+tDqXGYWW4w5mjkSyL 2vy4sHlikiHbN3ac0K9sg+GX7u6V4PV20dYqQAPR9jbbDvo/vJsn0pyYBBMbqEhZVcF0 kCazYbzQ9/FihRTTtfLuR3vqQKdsdX8SWaVvIuIjjlqpV1Nfu0oQlmhPniwKMjPYnpCP u9PgSQXwwR8IhReVuRvq+49WDdO/O21RA/Y4I9dlSsmi+enYT7OJPIZYJ5nCuYXEfG9z NAaM87M3as+KMDCY2M8IMKHLAPbKA0sPAsA70aS7VSck+KHSZd7t/WvohupyUJ6qMvO5 ljRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nXTb78eV08eu9LqR4exI8aBQ4cvZOJIiciSRSrpE6to=; b=kEK1NdD4NHFrcTIooBBaZnv0DPt9pjUoGrkoOrFYggKoFIfdkHrogoNbZ0tAKWknJg hXwagcCh6XJVyAYvNLYI+WtpRCDXaOj+x9LXFl9eLY01LMHcnSJgtE1O/yzAkipD3CqG 1qy3qo9V+OoY1B0rfATXHfFw2eqowWyIQiTw8RslpKEksYmar3TX1DVUjCo/bzE7y78g rffIChBkadS21kExgaYzK4+O468J4xGYfYFQ7lLvTUYreFIj5mX7j7ViC5s1ynDa4GcR 78e3hCj/2wH2lUgKR1hhgE74/eeIhagr3F/S6X1MGfHpgL3sOdi197Aj2xogJbLg4Y0F lApA== X-Gm-Message-State: APjAAAWLOa+SW/8IOLqU8eu8IPOY0x0qTj/O0aQyusieZCD+89v+t+sT mFnn2AppbVy0Ljx2v35JYlCrY4sSi8A5+ouOuaolMj6Y X-Google-Smtp-Source: APXvYqx2y9CjppW8a2PXDj9sis//mF2s7Sxp4RSJ9NgSBZSo70R4vVumT43AvXmhdjlvT3lN0jw5VWQymJBwfVmslkY= X-Received: by 2002:a67:ead6:: with SMTP id s22mr4296775vso.69.1576616460261; Tue, 17 Dec 2019 13:01:00 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::e30 X-Mailman-Approved-At: Tue, 17 Dec 2019 17:22:58 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com gnu.bash.bug:15741 Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='x86_64-unknown-cygwin' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -DRECYCLES_PIDS -I. -I/usr/src/bash-4.4.12-3.x86_64/src/bash-4.4 -I/usr/src/bash-4.4.12-3.x86_64/src/bash-4.4/include -I/usr/src/bash-4.4.12-3.x86_64/src/bash-4.4/lib -DWORDEXP_OPTION -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/bash-4.4.12-3.x86_64/build=/usr/src/debug/bash-4.4.12-3 -fdebug-prefix-map=/usr/src/bash-4.4.12-3.x86_64/src/bash-4.4=/usr/src/debug/bash-4.4.12-3 -Wno-parentheses -Wno-format-security uname output: CYGWIN_NT-10.0 ddtlap 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin Machine Type: x86_64-unknown-cygwin Bash Version: 4.4 Patch Level: 12 Release Status: release Description: I'm trying to do a Cygwin build of the bash git repo at bminor/bash on github. The configure (no options) and make (no options) finish successfully, but the build fails when doing $()-style command substitutions, claiming that the trailing paren is unexpected: % echo $(echo hiya) bash: command substitution: line 9: syntax error near unexpected token `)' bash: command substitution: line 9: `echo hiya)' % Note that other approaches to command substitution seem to work: % echo $(echo hiya > ) hiya % % echo `echo hiya` hiya % Repeat-By: Install cygwin (ver 3.1.0-1) Install cygwin-devel (ver 3.1.0-1) Install autoconf2.5 (ver 2.69-4) Install autoconf (ver 13-1) git clone https://github.com/bminor/bash.git cd bash ./configure make ./bash echo $(echo hiya)