module.exports = function(grunt) {

  grunt.registerTask('default', function(text) {
    var done = this.async();
    grunt.util.spawn({
      grunt: true,
      args: ['--gruntfile', 'Gruntfile-execArgv-child.js'],
    }, function(err, result, code) {
      var matches = result.stdout.match(/^(OUTPUT: .*)/m);
      console.log(matches ? matches[1] : '');
      done();
    });
  });

};

module.exports = function(grunt) {

  var util = require('../../');

  grunt.registerTask('default', function(text) {
    var done = this.async();
    util.spawn({
      grunt: true,
      args: ['--gruntfile', 'Gruntfile-execArgv-child.js'],
    }, function(err, result, code) {
      var matches = result.stdout.match(/^(OUTPUT: .*)/m);
      console.log(matches ? matches[1] : '');
      done();
    });
  });

};

Test with this "util" lib, not grunt.util.