|
From: Yuri K. <yur...@gm...> - 2014-06-25 23:15:07
|
> > If you want to invoke arcane applications, with anomalous command line > parsing conventions, then you may need a wrapper program, to parse the > literal command line, interpreting the escapes according to the C/C++ > runtime conventions, whence reconstructing the anomalously intended > argument string, which it then forwards to CreateProcess(). > > Sometimes, you need to think outside the box. It could be that such a > forwarding wrapper would be a useful addition to MSYS itself; perhaps > Cesar, (the MSYS maintainer), could comment? > I suppose wrapper program would be overkill. At least for me. So I've come with a way to overcome this: $ echo 'cmd /c ""cmd" /k echo test"' | cmd Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\Users\Yuri>cmd /c ""cmd" /k echo test" test C:\Users\Yuri> C:\Users\Yuri> Though, it spits some extra noise along the way. Also, since msys shell doesn't support process substitution, I was thinking about using mktemp, which produces strange output, as it appears. It made me stuck with this solution for now. And as I know see, msys has its own mktemp, which is not installed by default. Gotta give it a try. |