On Tue, 6 Feb 2018 11:01:48 +0100
Ola Røer Thorsen <[email protected]> wrote:

> I'm writing a Rule where one of the commands is using cat like this:
> 
> cat file1 file2 file3 > finalfile
> 
> My qbs code does this:
> 
> var cmd = new Command("cat", ["file1","file2","file3",">","finalfile"]);
> 
> The command line being used wraps > like '>', which doesn't work:
> 
> cat file1 file2 file3 '>' finalfile
> 
> Is this a qbs bug? Any way to work around this?

var cmd = new Command("cat", ["file1","file2","file3"]);
cmd.stdoutFilePath = "finalfile";
See http://doc-snapshots.qt.io/qbs/commands.html for all possible command 
properties.


Christian
_______________________________________________
Qbs mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to