* Re: Pipe after Command Substitution does not resolve the substitution:
@ 2017-06-14 14:27 Jon Bord
0 siblings, 0 replies; 5+ messages in thread
From: Jon Bord @ 2017-06-14 14:27 UTC (permalink / raw)
To: cygwin
Thanks loads for the reply Marco and for testing. It's much appreciated.
Just to confirm, it also ran fine for me on W7 64 with cygwin 64bit.
This issue is now on W10 64 with cygwin 64bit.
Is this the output from cygcheck that you mean? I've marked where i've
ommitted some of the -s output. It's a brand new and yet to be
optimized Windows, and the Cygwin is quite a minimal install as i just
wanted to get bash working properly first. Do you see anything wrong
with it which could explain bash's misbehaviour on Win10? I see <OS =
'Windows_NT'> but am guessing that might just be a leftover. And "??"
in the registry? "Not Found: gcc"? All things i know too little about
unfortunately.
$ cygcheck -c bash
Cygwin Package Information
Package Version Status
bash 4.4.12-3 OK
$ cygcheck -s -r -v bash
Found: C:\cygwin64\bin\bash.exe
C:\cygwin64\bin\bash.exe - os=4.0 img=0.0 sys=5.2
"bash.exe" v0.0 ts=2017-01-27 19:13
C:\cygwin64\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
"cygwin1.dll" v0.0 ts=2017-04-01 19:47
C:\WINDOWS\system32\KERNEL32.dll - os=10.0 img=10.0 sys=10.0
"KERNEL32.dll" v0.0
C:\WINDOWS\system32\ntdll.dll - os=10.0 img=10.0 sys=10.0
"ntdll.dll" v0.0
C:\WINDOWS\system32\KERNELBASE.dll - os=10.0 img=10.0 sys=10.0
"KERNELBASE.dll" v0.0
C:\WINDOWS\system32\ntdll.dll (already done)
C:\WINDOWS\system32\ntdll.dll (already done)
C:\cygwin64\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
"cygiconv-2.dll" v0.0 ts=2015-02-20 17:07
C:\cygwin64\bin\cygwin1.dll (already done)
C:\WINDOWS\system32\KERNEL32.dll (already done)
C:\cygwin64\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
"cygintl-8.dll" v0.0 ts=2016-10-23 07:17
C:\cygwin64\bin\cygwin1.dll (already done)
C:\cygwin64\bin\cygiconv-2.dll (already done)
C:\WINDOWS\system32\KERNEL32.dll (already done)
C:\cygwin64\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
"cygreadline7.dll" v0.0 ts=2017-02-11 22:39
C:\cygwin64\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
"cygncursesw-10.dll" v0.0 ts=2017-03-29 23:25
C:\cygwin64\bin\cygwin1.dll (already done)
C:\WINDOWS\system32\KERNEL32.dll (already done)
C:\cygwin64\bin\cygwin1.dll (already done)
C:\WINDOWS\system32\KERNEL32.dll (already done)
C:\WINDOWS\system32\KERNEL32.dll (already done)
Cygwin Configuration Diagnostics
Current System Time: Wed Jun 14 14:50:27 2017
Windows 10 Home Ver 10.0 Build 15063
Path: C:\cygwin64\usr\local\bin
C:\cygwin64\bin
C:\Program Files (x86)\Razer Chroma SDK\bin
C:\Program Files\Razer Chroma SDK\bin
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Program Files\Intel\WiFi\bin
C:\Program Files\Common Files\Intel\WirelessCommon
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0
C:\Users\xxxx\AppData\Local\Microsoft\WindowsApps
C:\Users\xxxx\AppData\Local\Microsoft\WindowsApps
Output from C:\cygwin64\bin\id.exe
xxxx
SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS
USER = xxxx
PWD =xxxx
HOME = xxxx
USERDOMAIN = xxxx
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Program
Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
LANG = 'en_GB.UTF-8'
TZ = xxxx
PUBLIC = 'C:\Users\Public'
OLDPWD = '/cygdrive/c/WINDOWS/System32'
USERNAME = xxxx
LOGONSERVER = xxxx
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = xxxx
COMPUTERNAME = xxxx
!:: = '::\'
SYSTEMDRIVE = 'C:'
USERPROFILE = xxxx
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
SYSTEMROOT = 'C:\WINDOWS'
USERDOMAIN_ROAMINGPROFILE = xxxx
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 78 Stepping 3, GenuineIntel'
TMP = '/tmp'
OneDrive = xxxx
PROCESSOR_REVISION = '4e03'
PROFILEREAD = 'true'
NUMBER_OF_PROCESSORS = '4'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
APPDATA = xxxx
SHELL = '/bin/bash'
TERM = 'xterm'
WINDIR = 'C:\WINDOWS'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
PRINTER = 'Microsoft Print to PDF'
PROGRAMFILES = 'C:\Program Files'
ALLUSERSPROFILE = 'C:\ProgramData'
TEMP = '/tmp'
SESSIONNAME = 'Console'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
HOMEDRIVE = 'C:'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
HOMEPATH = xxxx
ORIGINAL_PATH = '/cygdrive/c/Program Files (x86)/Razer Chroma
SDK/bin:/cygdrive/c/Program Files/Razer Chroma
SDK/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program
Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common
Files/Intel/WirelessCommon:/cygdrive/c/Program Files (x86)/NVIDIA
Corporation/PhysX/Common:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/Users/xxxx/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/xxxx/AppData/Local/Microsoft/WindowsApps'
EXECIGNORE = '*.dll'
_ = '/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
(default) = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
(default) = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
(default) = 'C:\cygwin64'
obcaseinsensitive set to 1
Cygwin installations found in the registry:
System: Key: e0xxxx79 Path: C:\cygwin64
User: Key: e0xxxx79 Path: C:\cygwin64
c: hd NTFS 242557Mb 38% CP CS UN PA FC EN
d: hd NTFS 1369357Mb 22% CP CS UN PA FC EN
e: hd NTFS 61439Mb 36% CP CS UN PA FC EN
f: cd N/A N/A
C:\cygwin64 / system binary,auto
C:\cygwin64\bin /usr/bin system binary,auto
C:\cygwin64\lib /usr/lib system binary,auto
cygdrive prefix /cygdrive user binary,posix=0,auto
Found: C:\cygwin64\bin\awk
-> C:\cygwin64\bin\gawk.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\cygwin64\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin64\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\Windows\system32\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\WINDOWS\system32\find.exe
Not Found: gcc
Found: C:\cygwin64\bin\gdb.exe
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\kill.exe
Found: C:\cygwin64\bin\ld.exe
Found: C:\cygwin64\bin\ls.exe
Not Found: make
Found: C:\cygwin64\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\sed.exe
Not Found: ssh
Found: C:\cygwin64\bin\sh.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\vi.exe
Found: C:\cygwin64\bin\vim.exe
39k 2016/09/19 C:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
"cygargp-0.dll" v0.0 ts=2016-09-19 02:13
16k 2013/03/26 C:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
"cygattr-1.dll" v0.0 ts=2013-03-26 18:26
180k 2015/03/23 C:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
"cygblkid-1.dll" v0.0 ts=2015-03-23 09:46
64k 2017/02/22 C:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
"cygbz2-1.dll" v0.0 ts=2017-02-22 07:22
10k 2016/06/09 C:\cygwin64\bin\cygcrypt-0.dll - os=4.0 img=0.0 sys=5.2
"cygcrypt-0.dll" v0.0 ts=2016-06-09 16:02
2235k 2017/01/26 C:\cygwin64\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
"cygcrypto-1.0.0.dll" v0.0 ts=2017-01-26 20:10
1549k 2016/08/22 C:\cygwin64\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
"cygdb-5.3.dll" v0.0 ts=2016-08-22 09:51
124k 2016/08/22 C:\cygwin64\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
"cygdb_cxx-5.3.dll" v0.0 ts=2016-08-22 09:52
570k 2016/08/22 C:\cygwin64\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
"cygdb_sql-5.3.dll" v0.0 ts=2016-08-22 09:52
145k 2016/06/21 C:\cygwin64\bin\cygexpat-1.dll - os=4.0 img=0.0 sys=5.2
"cygexpat-1.dll" v0.0 ts=2016-06-21 23:15
30k 2014/10/14 C:\cygwin64\bin\cygfam-0.dll - os=4.0 img=0.0 sys=5.2
"cygfam-0.dll" v0.0 ts=2014-10-14 21:33
27k 2015/11/17 C:\cygwin64\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
"cygffi-6.dll" v0.0 ts=2015-11-17 22:14
55k 2017/03/29 C:\cygwin64\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
"cygformw-10.dll" v0.0 ts=2017-03-29 23:26
70k 2016/06/13 C:\cygwin64\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
"cyggcc_s-seh-1.dll" v0.0 ts=2016-06-13 16:18
39k 2016/10/10 C:\cygwin64\bin\cyggdbm-4.dll - os=4.0 img=0.0 sys=5.2
"cyggdbm-4.dll" v0.0 ts=2016-10-10 09:26
13k 2016/10/10 C:\cygwin64\bin\cyggdbm_compat-4.dll - os=4.0 img=0.0 sys=5.2
"cyggdbm_compat-4.dll" v0.0 ts=2016-10-10 09:26
1344k 2017/03/17 C:\cygwin64\bin\cyggio-2.0-0.dll - os=4.0 img=0.0 sys=5.2
"cyggio-2.0-0.dll" v0.0 ts=2017-03-06 06:26
975k 2017/03/17 C:\cygwin64\bin\cygglib-2.0-0.dll - os=4.0 img=0.0 sys=5.2
"cygglib-2.0-0.dll" v0.0 ts=2017-03-05 03:42
15k 2017/03/17 C:\cygwin64\bin\cyggmodule-2.0-0.dll - os=4.0 img=0.0 sys=5.2
"cyggmodule-2.0-0.dll" v0.0 ts=2017-03-17 20:26
527k 2017/01/21 C:\cygwin64\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
"cyggmp-10.dll" v0.0 ts=2017-01-21 18:25
284k 2017/03/17 C:\cygwin64\bin\cyggobject-2.0-0.dll - os=4.0 img=0.0 sys=5.2
"cyggobject-2.0-0.dll" v0.0 ts=2017-03-05 03:42
9k 2017/03/17 C:\cygwin64\bin\cyggthread-2.0-0.dll - os=4.0 img=0.0 sys=5.2
"cyggthread-2.0-0.dll" v0.0 ts=2017-03-05 03:42
33k 2017/02/13 C:\cygwin64\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
"cyghistory7.dll" v0.0 ts=2017-02-11 22:39
1009k 2015/02/20 C:\cygwin64\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
"cygiconv-2.dll" v0.0 ts=2015-02-20 17:07
42k 2016/10/23 C:\cygwin64\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
"cygintl-8.dll" v0.0 ts=2016-10-23 07:17
6k 2017/04/01 C:\cygwin64\bin\cyglsa64.dll - os=4.0 img=0.0 sys=5.2
"cyglsa64.dll" v0.0 ts=2017-04-01 19:47
139k 2017/05/10 C:\cygwin64\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
"cyglzma-5.dll" v0.0 ts=2017-05-10 01:17
121k 2017/05/03 C:\cygwin64\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
"cygmagic-1.dll" v0.0 ts=2017-05-03 18:25
169k 2016/10/10 C:\cygwin64\bin\cygman-2-7-5.dll - os=4.0 img=0.0 sys=5.2
"cygman-2-7-5.dll" v0.0 ts=2016-10-10 22:07
22k 2016/10/10 C:\cygwin64\bin\cygmandb-2-7-5.dll - os=4.0 img=0.0 sys=5.2
"cygmandb-2-7-5.dll" v0.0 ts=2016-10-10 22:07
29k 2017/03/29 C:\cygwin64\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
"cygmenuw-10.dll" v0.0 ts=2017-03-29 23:26
346k 2017/04/08 C:\cygwin64\bin\cygmpfr-4.dll - os=4.0 img=0.0 sys=5.2
"cygmpfr-4.dll" v0.0 ts=2017-04-08 12:19
53k 2017/03/29 C:\cygwin64\bin\cygncurses++w-10.dll - os=4.0 img=0.0 sys=5.2
"cygncurses++w-10.dll" v0.0 ts=2017-03-29 23:31
282k 2017/03/29 C:\cygwin64\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
"cygncursesw-10.dll" v0.0 ts=2017-03-29 23:25
1003k 2017/04/28 C:\cygwin64\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
"cygp11-kit-0.dll" v0.0 ts=2017-04-28 05:23
14k 2017/03/29 C:\cygwin64\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
"cygpanelw-10.dll" v0.0 ts=2017-03-29 23:25
475k 2017/04/23 C:\cygwin64\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
"cygpcre-1.dll" v0.0 ts=2017-04-24 00:50
39k 2015/04/09 C:\cygwin64\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
"cygpipeline-1.dll" v0.0 ts=2015-04-09 21:04
41k 2016/07/13 C:\cygwin64\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
"cygpopt-0.dll" v0.0 ts=2016-07-13 06:16
219k 2017/02/13 C:\cygwin64\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
"cygreadline7.dll" v0.0 ts=2017-02-11 22:39
11k 2015/07/17 C:\cygwin64\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
"cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:35
89k 2015/03/23 C:\cygwin64\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
"cygsmartcols-1.dll" v0.0 ts=2015-03-23 09:46
973k 2017/04/19 C:\cygwin64\bin\cygsqlite3-0.dll - os=4.0 img=0.0 sys=5.2
"cygsqlite3-0.dll" v0.0 ts=2017-04-19 17:46
399k 2017/01/26 C:\cygwin64\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
"cygssl-1.0.0.dll" v0.0 ts=2017-01-26 20:10
12k 2016/06/13 C:\cygwin64\bin\cygssp-0.dll - os=4.0 img=0.0 sys=5.2
"cygssp-0.dll" v0.0 ts=2016-06-13 17:10
1325k 2016/06/13 C:\cygwin64\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
"cygstdc++-6.dll" v0.0 ts=2016-06-13 16:38
66k 2017/05/29 C:\cygwin64\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
"cygtasn1-6.dll" v0.0 ts=2017-05-29 23:32
53k 2017/03/29 C:\cygwin64\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
"cygticw-10.dll" v0.0 ts=2017-03-29 23:25
15k 2015/03/23 C:\cygwin64\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
"cyguuid-1.dll" v0.0 ts=2015-03-23 09:46
1214k 2017/03/13 C:\cygwin64\bin\cygxml2-2.dll - os=4.0 img=0.0 sys=5.2
"cygxml2-2.dll" v0.0 ts=2017-03-13 17:01
83k 2017/03/03 C:\cygwin64\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
"cygz.dll" v0.0 ts=2017-03-03 21:42
3238k 2017/04/01 C:\cygwin64\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
"cygwin1.dll" v0.0 ts=2017-04-01 19:47
Cygwin DLL version info:
DLL version: 2.8.0
DLL epoch: 19
DLL old termios: 5
DLL malloc env: 28
Cygwin conv: 181
API major: 0
API minor: 309
Shared data: 5
DLL identifier: cygwin1
Mount registry: 3
Cygwin registry name: Cygwin
Installations name: Installations
Cygdrive default prefix:
Build date:
Shared id: cygwin1S5
Can't find the cygrunsrv utility, skipping services check.
Cygwin Package Information
Last downloaded files to: xxxx
Last downloaded files from: http://cygwin.mirror.constant.com/
Package Version Status
_autorebase 001005-1 OK
alternatives 1.3.30c-10 OK
base-cygwin 3.8-1 OK
base-files 4.2-4 OK
bash 4.4.12-3 OK
bash-completion 2.4-1 OK
bash-completion-devel 2.4-1 OK
bash-debuginfo 4.4.12-3 OK
bashdb 3.1_0.09-1 OK
binutils 2.25-4 OK
bzip2 1.0.6-3 OK
ca-certificates 2.14-1 OK
coreutils 8.26-2 OK
cygutils 1.4.15-2 OK
cygwin 2.8.0-1 OK
cygwin-debuginfo 2.8.0-1 OK
cygwin-devel 2.8.0-1 OK
dash 0.5.9.1-1 OK
desktop-file-utils 0.23-1 OK
diffutils 3.5-2 OK
editrights 1.03-1 OK
file 5.30-1 OK
findutils 4.6.0-1 OK
gamin 0.1.10-15 OK
gawk 4.1.4-3 OK
gdb 7.10.1-1 OK
getent 2.18.90-4 OK
grep 3.0-2 OK
groff 1.22.3-1 OK
gsettings-desktop-schemas 3.22.0-1 OK
gzip 1.8-1 OK
hostname 3.13-1 OK
info 6.3-1 OK
ipc-utils 1.0-2 OK
less 487-1 OK
libargp 20110921-3 OK
libattr1 2.4.46-1 OK
libblkid1 2.25.2-2 OK
libbz2_1 1.0.6-3 OK
libcrypt0 1.4-1 OK
libdb5.3 5.3.28-1 OK
libexpat1 2.2.0-0 OK
libfam0 0.1.10-15 OK
libffi6 3.2.1-2 OK
libgcc1 5.4.0-1 OK
libgdbm4 1.12-1 OK
libglib2.0_0 2.50.3-1 OK
libgmp10 6.1.2-1 OK
libiconv 1.14-3 OK
libiconv2 1.14-3 OK
libintl8 0.19.8.1-2 OK
liblzma5 5.2.3-1 OK
libmpfr4 3.1.5-1p2 OK
libncursesw10 6.0-10.20170325 OK
libopenssl100 1.0.2k-1 OK
libp11-kit0 0.23.5-1 OK
libpcre1 8.40-3 OK
libpipeline1 1.4.0-1 OK
libpopt-common 1.16-2 OK
libpopt0 1.16-2 OK
libreadline7 7.0.3-3 OK
libsigsegv2 2.10-2 OK
libsmartcols1 2.25.2-2 OK
libsqlite3_0 3.18.0-1 OK
libssp0 5.4.0-1 OK
libstdc++6 5.4.0-1 OK
libtasn1_6 4.12-1 OK
libuuid-devel 2.25.2-2 OK
libuuid1 2.25.2-2 OK
libxml2 2.9.4-2 OK
login 1.11-1 OK
man-db 2.7.5-2 OK
mintty 2.7.7-0 OK
ncurses 6.0-10.20170325 OK
openssl 1.0.2k-1 OK
p11-kit 0.23.5-1 OK
p11-kit-trust 0.23.5-1 OK
pkg-config 0.29.1-1 OK
Empty package python
python 2.7.13-1 OK
python2 2.7.13-1 OK
rebase 4.4.2-1 OK
run 1.3.4-2 OK
sed 4.4-1 OK
shared-mime-info 1.7-1 OK
tar 1.29-1 OK
terminfo 6.0-10.20170325 OK
tzcode 2016j-1 OK
tzdata 2017b-1 OK
util-linux 2.25.2-2 OK
vim 8.0.0542-1 OK
vim-common 8.0.0542-1 OK
vim-doc 8.0.0542-1 OK
vim-minimal 8.0.0596-1 OK
which 2.20-2 OK
xxd 8.0.0596-1 OK
xz 5.2.3-1 OK
zlib0 1.2.11-1 OK
Use -h to see help about each section
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Pipe after Command Substitution does not resolve the substitution:
@ 2017-06-14 15:30 Jon Bord
0 siblings, 0 replies; 5+ messages in thread
From: Jon Bord @ 2017-06-14 15:30 UTC (permalink / raw)
To: cygwin
Firstly, i should clarify the problem definition asap by including
this fourth example which shows a pipe working fine when it is not
preceded by command substitution:
$ grep 2 test.txt | grep 3
grep 2 test.txt | grep 3
+ grep 2 test.txt
+ grep 3
23
Thanks Brian for all the suggestions and for showing it running on
Win10.0.14393. Below is from the culprit:
====
$ cmd /c ver
Microsoft Windows [Version 10.0.15063]
$ uname -svrmo
CYGWIN_NT-10.0 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
$ bash --version
GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
====
I don't want to waste any time on this list if the cause is my user
error but this is a different build of Win10 and i have rerun setup
(including autorebase) and tested with BLODA off, including all AV,
and <CYGWIN=detect_bloda> which reported nothing.
You say that "Command substitution adds arguments to the command line
and does not interfere with pipes" which i also believe is the
intended behaviour and why i have raised this as a potential bug
according to the output from the four examples with <set -xv>. Do they
not show that it is the combination of the pipe and the command
substitution which is not working?
Finally, did you mean that i should try Cygwin 32? or to check that i
was not using Cygwin 32?
Thanks again.
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Pipe after Command Substitution does not resolve the substitution:
2017-06-14 7:41 Jon Bord
2017-06-14 10:34 ` Marco Atzeri
@ 2017-06-14 14:14 ` Brian Inglis
1 sibling, 0 replies; 5+ messages in thread
From: Brian Inglis @ 2017-06-14 14:14 UTC (permalink / raw)
To: cygwin
On 2017-06-14 01:41, Jon Bord wrote:
> Windows 10
> bash 4.4.11(2) and 4.4.12(3)
Better to just run the commands and post the output e.g.:
$ cmd /c ver
Microsoft Windows [Version 10.0.14393]
$ uname -svrmo
CYGWIN_NT-10.0 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
$ bash --version
GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
and run and attach output as text:
$ cygcheck -svr > cygcheck.out
> $ set -xv
> (EXAMPLE 1: COMMAND SUBSTITUTION WORKS AS EXPECTED)
> $ grep 2 $(ls | tail -1)
> grep 2 $(ls | tail -1)
> ++ ls
> ++ tail -1
> + grep 2 test.txt
> 2
> 23
> (EXAMPLE 2: HANGS)
> $ grep 2 $(ls | tail -1) | grep 3
> grep 2 $(ls | tail -1) | grep 3
> + grep 3
> + grep 2
> (EXAMPLE 3: HANGS)
> $ grep 2 `ls | tail -1` | grep 3
> grep 2 `ls | tail -1` | grep 3
> + grep 3
> + grep 2
$ cat z
1
2
3
12
23
13
$ grep 2 `ls | tail -1` | grep 3
23
WFM!
Command substitution adds arguments to the command line and does not
interfere with pipes.
> SPECULATION: i had wondered if the cause was a change in version of
> bash but i cannot be sure what the version was that i was using on
> Windows 7. I wish i had a record. I've tried this on both 4.4.11(2)
> and 4.4.12(3). My instincts are that it is not, that it is Cygwin (or
> more precisely bash.exe?) on Windows 10 instead. I have noticed other
> differences / problems, eg arrow keys behaving oddly in vi, and
> general sluggishness (but not tested yet).
Cygwin 32?
Run "rebase-trigger full", shut down all Cygwin processes, download and
run setup to do a full rebase, and retry.
AV?
BLODA?
https://cygwin.com/faq/faq.html#faq.using.bloda
Fork problems are often a symptom of poorly written software like those
listed.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Pipe after Command Substitution does not resolve the substitution:
2017-06-14 7:41 Jon Bord
@ 2017-06-14 10:34 ` Marco Atzeri
2017-06-14 14:14 ` Brian Inglis
1 sibling, 0 replies; 5+ messages in thread
From: Marco Atzeri @ 2017-06-14 10:34 UTC (permalink / raw)
To: cygwin
On 14/06/2017 09:41, Jon Bord wrote:
> Hi,
>
> This is the first time i've ever submitted a bug report so i hope the
> below is ok. I am not a programmer although i do do some scripting.
>
> The below is the kind of 'command substitution then pipe' that i often
> used in Cygwin on Windows 7. Now that i've been forced to move to
> Windows 10 it no longer seems to work. I'm assuming that this is not a
> feature of an upgraded Bash but maybe i'm wrong, eg maybe we are now
> supposed to put everything in variables rather than use command
> substitution.
>
> Windows 10
> bash 4.4.11(2) and 4.4.12(3)
>
> $ set -xv
>
> (EXAMPLE 1: COMMAND SUBSTITUTION WORKS AS EXPECTED)
> $ grep 2 $(ls | tail -1)
> grep 2 $(ls | tail -1)
> ++ ls
> ++ tail -1
> + grep 2 test.txt
> 2
> 23
>
> (EXAMPLE 2: HANGS)
> $ grep 2 $(ls | tail -1) | grep 3
> grep 2 $(ls | tail -1) | grep 3
> + grep 3
> + grep 2
>
> (EXAMPLE 3: HANGS)
> $ grep 2 `ls | tail -1` | grep 3
> grep 2 `ls | tail -1` | grep 3
> + grep 3
> + grep 2
>
> Would it be correct to conclude from the above output that once the
> pipe is added then it is ignoring the substitution?
>
Hi Jon,
all the examples work for me on W7 64 with cygwin 64bit.
$ ls
prova.txt
$ cat prova.txt
1
2
3
23
$ grep 2 $(ls | tail -1)
2
23
$ grep 2 $(ls | tail -1) | grep 3
23
$ grep 2 `ls | tail -1` | grep 3
23
can you provide your cygcheck.out ?
Problem reports: http://cygwin.com/problems.html
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Pipe after Command Substitution does not resolve the substitution:
@ 2017-06-14 7:41 Jon Bord
2017-06-14 10:34 ` Marco Atzeri
2017-06-14 14:14 ` Brian Inglis
0 siblings, 2 replies; 5+ messages in thread
From: Jon Bord @ 2017-06-14 7:41 UTC (permalink / raw)
To: cygwin
Hi,
This is the first time i've ever submitted a bug report so i hope the
below is ok. I am not a programmer although i do do some scripting.
The below is the kind of 'command substitution then pipe' that i often
used in Cygwin on Windows 7. Now that i've been forced to move to
Windows 10 it no longer seems to work. I'm assuming that this is not a
feature of an upgraded Bash but maybe i'm wrong, eg maybe we are now
supposed to put everything in variables rather than use command
substitution.
Windows 10
bash 4.4.11(2) and 4.4.12(3)
$ set -xv
(EXAMPLE 1: COMMAND SUBSTITUTION WORKS AS EXPECTED)
$ grep 2 $(ls | tail -1)
grep 2 $(ls | tail -1)
++ ls
++ tail -1
+ grep 2 test.txt
2
23
(EXAMPLE 2: HANGS)
$ grep 2 $(ls | tail -1) | grep 3
grep 2 $(ls | tail -1) | grep 3
+ grep 3
+ grep 2
(EXAMPLE 3: HANGS)
$ grep 2 `ls | tail -1` | grep 3
grep 2 `ls | tail -1` | grep 3
+ grep 3
+ grep 2
Would it be correct to conclude from the above output that once the
pipe is added then it is ignoring the substitution?
SPECULATION: i had wondered if the cause was a change in version of
bash but i cannot be sure what the version was that i was using on
Windows 7. I wish i had a record. I've tried this on both 4.4.11(2)
and 4.4.12(3). My instincts are that it is not, that it is Cygwin (or
more precisely bash.exe?) on Windows 10 instead. I have noticed other
differences / problems, eg arrow keys behaving oddly in vi, and
general sluggishness (but not tested yet).
Many thanks for any help and i hope this can contribute to keeping
Cygwin strong.
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-14 15:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-14 14:27 Pipe after Command Substitution does not resolve the substitution: Jon Bord
-- strict thread matches above, loose matches on Subject: below --
2017-06-14 15:30 Jon Bord
2017-06-14 7:41 Jon Bord
2017-06-14 10:34 ` Marco Atzeri
2017-06-14 14:14 ` Brian Inglis
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).