暂无描述

win-spawn 243B

123456789101112
  1. #!/usr/bin/env node
  2. var spawn = require('../index.js');
  3. var args = process.argv.slice(2);
  4. var cmd = '';
  5. while (/^[A-Z_]+\=[^ \=]+$/.test(args[0])) {
  6. cmd += args.shift() + ' ';
  7. }
  8. cmd += args.shift();
  9. spawn(cmd, args, { stdio: 'inherit' });