{"comment":{"url":"https://api.github.com/repos/kaldi-asr/kaldi/comments/11318409","html_url":"https://github.com/kaldi-asr/kaldi/commit/5d2cc33b614294c36aa6e7e0e5619d69e9ca7aaf#commitcomment-11318409","id":11318409,"user":{"login":"kkm000","id":8228229,"avatar_url":"https://avatars.githubusercontent.com/u/8228229?v=3","gravatar_id":"","url":"https://api.github.com/users/kkm000","html_url":"https://github.com/kkm000","followers_url":"https://api.github.com/users/kkm000/followers","following_url":"https://api.github.com/users/kkm000/following{/other_user}","gists_url":"https://api.github.com/users/kkm000/gists{/gist_id}","starred_url":"https://api.github.com/users/kkm000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkm000/subscriptions","organizations_url":"https://api.github.com/users/kkm000/orgs","repos_url":"https://api.github.com/users/kkm000/repos","events_url":"https://api.github.com/users/kkm000/events{/privacy}","received_events_url":"https://api.github.com/users/kkm000/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"5d2cc33b614294c36aa6e7e0e5619d69e9ca7aaf","created_at":"2015-05-21T23:28:22Z","updated_at":"2015-05-21T23:28:22Z","body":"@jtrmal \r\n> Do we need the bash popen because the pipe commands in egs use the bash syntax (wildcards expansion, variable substitution and so on)? Or is there some other,l reason I fail to see?\r\n\r\n1. Yes, bash syntax, quotes in particular Scripts use single quotes and they are not quotes in cmd. Something I really hit (or, rather, the other way round).\r\n2. Links and shell scripts where you won't expect them. You can run `gzip` from `cmd` but not `gunzip`, because the latter is a shell script invoking `gzip`.\r\n\r\n```\r\nC:\\projects\\kaldi\\kaldi\\msbuild>gzip --version\r\ngzip 1.6\r\n. . . . \r\nC:\\projects\\kaldi\\kaldi\\msbuild>gunzip --version\r\n'gunzip' is not recognized as an internal or external command operable program or batch file.\r\n\r\nC:\\projects\\kaldi\\kaldi\\msbuild>bash -c \"gunzip --version\"\r\ngunzip (gzip) 1.6\r\n. . . .\r\n```\r\n\r\nAnother commands you do not have are `awk` and `python`, as they are symlinks, understood by cygwin-compiled binaries only.\r\n\r\n```\r\nC:\\projects\\kaldi\\kaldi\\msbuild>python --version\r\n'python' is not recognized as an internal or external command, operable program or batch file.\r\n\r\nC:\\projects\\kaldi\\kaldi\\msbuild>bash -c \"file `which gzip gunzip awk python`\"\r\n/usr/bin/gzip:   PE32+ executable (console) x86-64, for MS Windows\r\n/usr/bin/gunzip: POSIX shell script, ASCII text executable\r\n/usr/bin/awk:    symbolic link to gawk.exe\r\n/usr/bin/python: symbolic link to python2.7.exe\r\n```\r\n\r\n> one can run cmd pipe even using cygwin commands without any problem.\r\n\r\nYes one can generally, if only for a very liberal definition of *any*... : ("}}