Lines Matching refs:file
203 file: command,
234 return module.exports.execFile(opts.file,
263 function normalizeExecFileArgs(file, args, options, callback) {
300 return { file, args, options, callback };
304 * Spawns the specified file as a shell.
305 * @param {string} file
328 function execFile(file, args, options, callback) {
329 ({ file, args, options, callback } = normalizeExecFileArgs(file, args, options, callback));
351 const child = spawn(file, args, {
378 let cmd = file;
547 function normalizeSpawnArguments(file, args, options) {
548 validateString(file, 'file');
549 validateArgumentNullCheck(file, 'file');
551 if (file.length === 0)
552 throw new ERR_INVALID_ARG_VALUE('file', file, 'cannot be empty');
622 const command = ArrayPrototypeJoin([file, ...args], ' ');
626 file = options.shell;
628 file = process.env.comspec || 'cmd.exe';
630 if (RegExpPrototypeExec(/^(?:.*\\)?cmd(?:\.exe)?$/i, file) !== null) {
638 file = options.shell;
640 file = '/system/bin/sh';
642 file = '/bin/sh';
650 ArrayPrototypeUnshift(args, file);
713 file,
732 * Spawns a new process using the given `file`.
733 * @param {string} file
753 function spawn(file, args, options) {
754 options = normalizeSpawnArguments(file, args, options);
802 * Spawns a new process synchronously using the given `file`.
803 * @param {string} file
831 function spawnSync(file, args, options) {
835 ...normalizeSpawnArguments(file, args, options),
896 * Spawns a file as a shell synchronously.
897 * @param {string} file
915 function execFileSync(file, args, options) {
916 ({ file, args, options } = normalizeExecFileArgs(file, args, options));
919 const ret = spawnSync(file, args, options);
924 const errArgs = [options.argv0 || file];
957 const ret = spawnSync(opts.file, opts.options);