Skip to content
Myr

Fix `result.all` and `subprocess.all` when only some file descriptors are buffered

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sindre Sorhus · committed by Sindre Sorhus · parent b548d8b · Browse files · 17 files+239 added−44 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

17 files+239 added−44 removed

  • tests:+132 added−0 removed
  • other:+107 added−44 removed

17 files+239 added−44 removed

modified:docs/api.md+2 added-2 removed
415 unmodified lines
416Stream combining/interleaving [`subprocess.stdout`](#subprocessstdout) and [`subprocess.stderr`](#subprocessstderr).417418This requires the [`all`](#optionsall) option to be `true`.419420This is `undefined` if [`stdout`](#optionsstdout) and [`stderr`](#optionsstderr) options are set to [`'inherit'`](output.md#terminal-output), [`'ignore'`](output.md#ignore-output), [`Writable`](streams.md#output) or [`integer`](output.md#terminal-output), or if the [`buffer`](#optionsbuffer) option is `false`.420This is `undefined` if both [`stdout`](#optionsstdout) and [`stderr`](#optionsstderr) options are set to [`'inherit'`](output.md#terminal-output), [`'ignore'`](output.md#ignore-output), [`Writable`](streams.md#output) or [`integer`](output.md#terminal-output).421422More info on [interleaving](output.md#interleaved-output) and [streaming](streams.md#manual-streaming).423424### subprocess.stdio
150 unmodified lines
575The output of the subprocess with [`result.stdout`](#resultstdout) and [`result.stderr`](#resultstderr) interleaved.576577This requires the [`all`](#optionsall) option to be `true`.578579This is `undefined` if both [`stdout`](#optionsstdout) and [`stderr`](#optionsstderr) options are set to only [`'inherit'`](output.md#terminal-output), [`'ignore'`](output.md#ignore-output), [`Writable`](streams.md#output) or [`integer`](output.md#terminal-output), or if the [`buffer`](#optionsbuffer) option is `false`.579This is `undefined` if both [`stdout`](#optionsstdout) and [`stderr`](#optionsstderr) options are set to only [`'inherit'`](output.md#terminal-output), [`'ignore'`](output.md#ignore-output), [`Writable`](streams.md#output) or [`integer`](output.md#terminal-output), or if the [`buffer`](#optionsbuffer) option is `false` for both.580581This is an array if the [`lines`](#optionslines) option is `true`, or if either the `stdout` or `stderr` option is a [transform in object mode](transform.md#object-mode).582583[More info.](output.md#interleaved-output)
782 unmodified lines
modified:lib/io/contents.js+3 added-3 removed
modified:lib/io/strip-newline.js+4 added-3 removed
modified:lib/methods/main-async.js+2 added-2 removed
15 unmodified lines
16import {subprocessKill} from '../terminate/kill.js';17import {getSpawnOptions, getKillFunction} from '../terminate/kill-descendants.js';18import {cleanupOnExit} from '../terminate/cleanup.js';19import {pipeToSubprocess} from '../pipe/setup.js';20import {makeAllStream} from '../resolve/all-async.js';20import {makeAllStream, getAllFds} from '../resolve/all-async.js';21import {waitForSubprocessResult} from '../resolve/wait-subprocess.js';22import {addConvertedStreams} from '../convert/add.js';23import {createDeferred} from '../utils/deferred.js';24import {mergePromise} from './promise.js';
158 unmodified lines
183 controller.abort();184 onInternalError.resolve();185186 const stdio = stdioResults.map((stdioResult, fdNumber) => stripNewline(stdioResult, options, fdNumber));187 const all = stripNewline(allResult, options, 'all');187 const all = stripNewline(allResult, options, 'all', getAllFds(subprocess, options.buffer));188 const result = getAsyncResult({189 errorInfo,190 exitCode,191 signal,
40 unmodified lines
modified:lib/methods/main-sync.js+3 added-2 removed
7 unmodified lines
8import {stripNewline} from '../io/strip-newline.js';9import {addInputOptionsSync} from '../io/input-sync.js';10import {transformOutputSync} from '../io/output-sync.js';11import {getMaxBufferSync} from '../io/max-buffer.js';12import {getAllSync} from '../resolve/all-sync.js';12import {getAllSync, getAllSyncFds} from '../resolve/all-sync.js';13import {getExitResultSync} from '../resolve/exit-sync.js';1415// Main shared logic for all sync methods: `execaSync()`, `$.sync()`16export const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
82 unmodified lines
99 options,100 verboseInfo,101 });102 const stdio = output.map((stdioOutput, fdNumber) => stripNewline(stdioOutput, options, fdNumber));103 const all = stripNewline(getAllSync(output, options), options, 'all');103 const allFds = getAllSyncFds(output);104 const all = stripNewline(getAllSync(output, allFds, options), options, 'all', allFds);105 return getSyncResult({106 error,107 exitCode,108 signal,
60 unmodified lines
modified:lib/resolve/all-async.js+48 added-16 removed
modified:lib/resolve/all-sync.js+26 added-10 removed
1import {isUint8Array, concatUint8Arrays} from '../utils/uint-array.js';2import {splitLinesSync} from '../transform/split.js';2import {stripNewline} from '../io/strip-newline.js';3import {getStripFinalNewline} from '../io/strip-newline.js';45// The file descriptors which `result.all` interleaves. Those are the ones with an output, like with the `all` stream.6export const getAllSyncFds = ([, stdout, stderr]) => [7 ...(stdout === undefined ? [] : [1]),8 ...(stderr === undefined ? [] : [2]),9];1011// Retrieve `result.all` with synchronous methods5export const getAllSync = ([, stdout, stderr], options) => {12export const getAllSync = ([, stdout, stderr], allFds, options) => {13 if (!options.all) {14 return;15 }1617 if (stdout === undefined) {11 return stderr;18 return splitAllLines(stderr, allFds, options);19 }2021 if (stderr === undefined) {15 return stdout;22 return splitAllLines(stdout, allFds, options);23 }2418 if (Array.isArray(stdout)) {19 return Array.isArray(stderr)20 ? [...stdout, ...stderr]21 : [...stdout, stripNewline(stderr, options, 'all')];25 // Like asynchronous methods, `all` is split into lines as soon as the `lines` option applies to either file descriptor.26 // A file descriptor which uses the `lines` option is already split with its own `stripFinalNewline` value, like `result.stdout` and `result.stderr` are. The other one is split with the `stripFinalNewline` value of `result.all`.27 // This differs from asynchronous methods, which cannot tell which file descriptor the merged output's last newline belongs to.28 if (hasLines(options)) {29 return [splitAllLines(stdout, allFds, options), splitAllLines(stderr, allFds, options)].flat();30 }3124 if (Array.isArray(stderr)) {25 return [stripNewline(stdout, options, 'all'), ...stderr];32 // Without the `lines` option, arrays can only come from object mode, which does not apply to the other file descriptor33 if (Array.isArray(stdout) || Array.isArray(stderr)) {34 return [stdout, stderr].flat();35 }3637 if (isUint8Array(stdout) && isUint8Array(stderr)) {38 return concatUint8Arrays([stdout, stderr]);39 }4041 return `${stdout}${stderr}`;42};4344const hasLines = ({lines}) => Boolean(lines[1] || lines[2]);4546// Each file descriptor is either already split into lines, or is a string which still needs to be split47const splitAllLines = (value, allFds, options) => Array.isArray(value) || !hasLines(options)48 ? value49 : splitLinesSync(value, !getStripFinalNewline(options.stripFinalNewline, 'all', allFds), false);
modified:lib/resolve/stdio.js+2 added-1 removed
14 unmodified lines
15 streamInfo,16}));1718// Read the contents of `subprocess.std*` or `subprocess.all` and|or wait for its completion19export const waitForSubprocessStream = async ({stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo}) => {19export const waitForSubprocessStream = async ({stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, allFds, verboseInfo, streamInfo}) => {20 if (!stream) {21 return;22 }23
13 unmodified lines
37 maxBuffer,38 lines,39 allMixed,40 stripFinalNewline,41 allFds,42 verboseInfo,43 streamInfo,44 }),45 onStreamEnd,
3 unmodified lines
modified:lib/stdio/stdio-option.js+6 added-2 removed
73 unmodified lines
74};7576// Using `buffer: false` with synchronous methods implies `stdout`/`stderr`: `ignore`.77// Unless the output is needed, e.g. due to `verbose: 'full'` or to redirecting to a file.78// This is only done for `stdout`/`stderr`, since `ignore` redirects them to `/dev/null`.79// With additional file descriptors, it does not pass them to the subprocess at all, which would make it fail when writing to them.80const normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) =>81 !buffer[fdNumber]80 && fdNumber !== 082 && isStandardOutputFd(fdNumber)83 && !isFullVerbose(verboseInfo, fdNumber)84 && isOutputPipeOnly(stdioOption, fdNumber)85 ? 'ignore'86 : stdioOption);
8 unmodified lines
95 && stdioOption.value === 'pipe'96 && (stdioOption.input === undefined || stdioOption.input === false || isFixedOutputPipe(fdNumber, stdioOption.input));9798// On `stdout`/`stderr`, the direction is always output, so `input: true` is ignored and the pipe stays output.97const isFixedOutputPipe = (fdNumber, input) => input === true && (fdNumber === 1 || fdNumber === 2);99const isFixedOutputPipe = (fdNumber, input) => input === true && isStandardOutputFd(fdNumber);100101const isStandardOutputFd = fdNumber => fdNumber === 1 || fdNumber === 2;
modified:lib/utils/standard-stream.js+6 added
2 unmodified lines
3export const isStandardStream = stream => STANDARD_STREAMS.includes(stream);4export const STANDARD_STREAMS = [process.stdin, process.stdout, process.stderr];5export const STANDARD_STREAMS_ALIASES = ['stdin', 'stdout', 'stderr'];6export const getStreamName = fdNumber => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;78// `subprocess.all` is created by Execa itself, which then pipes `stdout`/`stderr` into it.9// `verbose` needs to tell that pipe apart from a user pipe, which it disables.10const allStreamSymbol = Symbol('execa.allStream');11export const setAllStream = stream => Object.assign(stream, {[allStreamSymbol]: true});12export const isAllStream = stream => stream?.[allStreamSymbol] === true;
modified:lib/verbose/output.js+3 added-1 removed
1import {BINARY_ENCODINGS} from '../arguments/encoding-option.js';2import {TRANSFORM_TYPES} from '../stdio/type.js';3import {isAllStream} from '../utils/standard-stream.js';4import {verboseLog, serializeVerboseMessage} from './log.js';5import {isFullVerbose} from './values.js';67// `ignore` opts-out of `verbose` for a specific stream.
37 unmodified lines
45// - `.pipe()` achieves the same result as using `stdout: 'inherit'`, `stdout: stream`, etc. which also make `verbose` a noop.46// For example, `subprocess.stdout.pipe(process.stdin)` would print each line twice.47// - When chaining subprocesses with `subprocess.pipe(otherSubprocess)`, only the last one should print its output.48// Detecting whether `.pipe()` is impossible without monkey-patching it, so we use the following undocumented property.49// The pipe into `subprocess.all` is done by Execa itself, so it is excluded.50// This is not a critical behavior since changes of the following property would only make `verbose` more verbose.49const isPipingStream = stream => stream._readableState.pipes.length > 0;51const isPipingStream = stream => stream._readableState.pipes.some(pipe => !isAllStream(pipe));5253// When `verbose` is `full`, print stdout|stderr54const logLine = (line, fdNumber, verboseInfo) => {55 const verboseMessage = serializeVerboseMessage(line);
7 unmodified lines
added:test/fixtures/noop-fd-large.js+7 added
1#!/usr/bin/env node2import {Buffer} from 'node:buffer';3import {getWriteStream} from '../helpers/fs.js';45const fdNumber = Number(process.argv[2]);6const bytes = Number(process.argv[3]);7getWriteStream(fdNumber).write(Buffer.alloc(bytes, 'a'));
modified:test/resolve/all.js+48 added
173 unmodified lines
174 t.is(stdout, undefined);175 t.is(stderr, undefined);176 t.is(all, undefined);177});178179// `all` is split into lines when the `lines` option applies to either file descriptor, even when only one of them uses it180const foobarTwoLines = `${foobarString}\n${foobarString}`;181// The fixture writes the same two lines to both `stdout` and `stderr`182const foobarTwoLinesArray = Array.from({length: 4}, () => `${foobarString}\n`);183const testAllBothLines = async (t, lines, execaMethod) => {184 const {all} = await execaMethod('noop-both.js', [foobarTwoLines], {all: true, lines, stripFinalNewline: false});185 t.deepEqual(all, foobarTwoLinesArray);186};187188test('result.all is split into lines when only stdout uses the lines option', testAllBothLines, {stdout: true}, execa);189test('result.all is split into lines when only stderr uses the lines option', testAllBothLines, {stderr: true}, execa);190test('result.all is split into lines when only stdout uses the lines option, sync', testAllBothLines, {stdout: true}, execaSync);191test('result.all is split into lines when only stderr uses the lines option, sync', testAllBothLines, {stderr: true}, execaSync);192193// When only one file descriptor is interleaved into `all`, it must follow that one exactly, including its `stripFinalNewline` value194const testAllOneFd = async (t, lines, execaMethod) => {195 const {stderr, all} = await execaMethod('noop-both.js', [foobarString], {196 all: true,197 stdout: 'ignore',198 lines,199 stripFinalNewline: {stderr: false},200 });201 t.deepEqual(stderr, lines ? [`${foobarString}\n`] : `${foobarString}\n`);202 t.deepEqual(all, stderr);203};204205test('result.all follows stderr when stdout is ignored', testAllOneFd, false, execa);206test('result.all follows stderr when stdout is ignored, lines', testAllOneFd, true, execa);207test('result.all follows stderr when stdout is ignored, sync', testAllOneFd, false, execaSync);208test('result.all follows stderr when stdout is ignored, lines, sync', testAllOneFd, true, execaSync);209210// `all` is split into lines as soon as the `lines` option applies to either file descriptor, even the one which is not interleaved into `all`211const testAllOneFdOtherLines = async (t, linesFdName, ignoredFdName, stripFinalNewline, execaMethod) => {212 const {all} = await execaMethod('noop-both.js', [foobarString], {213 all: true,214 [ignoredFdName]: 'ignore',215 lines: {[linesFdName]: true},216 stripFinalNewline,217 });218 t.deepEqual(all, [stripFinalNewline ? foobarString : `${foobarString}\n`]);219};220221test('result.all is split into lines when only stdout uses the lines option and stderr is ignored', testAllOneFdOtherLines, 'stdout', 'stderr', true, execa);222test('result.all is split into lines when only stdout uses the lines option and stderr is ignored, stripFinalNewline false', testAllOneFdOtherLines, 'stdout', 'stderr', false, execa);223test('result.all is split into lines when only stderr uses the lines option and stdout is ignored', testAllOneFdOtherLines, 'stderr', 'stdout', true, execa);224test('result.all is split into lines when only stdout uses the lines option and stderr is ignored, sync', testAllOneFdOtherLines, 'stdout', 'stderr', true, execaSync);225test('result.all is split into lines when only stderr uses the lines option and stdout is ignored, sync', testAllOneFdOtherLines, 'stderr', 'stdout', true, execaSync);
modified:test/resolve/no-buffer.js+62 added
121 unmodified lines
122test('buffer: false does not return output, stdout [undefined], sync', testNoOutput, [undefined], false, execaSync);123test('buffer: false does not return output, stdout [null], sync', testNoOutput, [null], false, execaSync);124test('buffer: false does not return output, stdout ["pipe", undefined], sync', testNoOutput, ['pipe', undefined], false, execaSync);125126/*127With `buffer: false`, additional file descriptors must still be passed to the subprocess.128With synchronous methods, `ignore` is used to avoid buffering, but that only redirects `stdout`/`stderr` to `/dev/null`.129For other file descriptors, it does not pass them at all, which would make the subprocess fail when writing to them.130*/131const testNoOutputFdStays = async (t, buffer, execaMethod) => {132 const {stdio, failed} = await execaMethod('noop-fd.js', ['3', foobarString], {...fullStdio, buffer});133 t.false(failed);134 t.is(stdio[3], undefined);135};136137test('buffer: false keeps stdio[*] open', testNoOutputFdStays, false, execa);138test('buffer: false keeps stdio[*] open, fd-specific', testNoOutputFdStays, {fd3: false}, execa);139test('buffer: false keeps stdio[*] open, sync', testNoOutputFdStays, false, execaSync);140test('buffer: false keeps stdio[*] open, fd-specific, sync', testNoOutputFdStays, {fd3: false}, execaSync);141142const testNoOutputFail = async (t, execaMethod) => {143 const {exitCode, stdout} = await execaMethod('fail.js', {buffer: false, reject: false});144 t.is(exitCode, 2);145 t.is(stdout, undefined);
19 unmodified lines
165test('buffer: {stdout: false}, all: true, sync', testNoOutputAll, {stdout: false}, false, true, execaSync);166test('buffer: {stderr: false}, all: true, sync', testNoOutputAll, {stderr: false}, true, false, execaSync);167test('buffer: {all: false}, all: true, sync', testNoOutputAll, {all: false}, false, false, execaSync);168169// `result.all` only contains the buffered file descriptors, so its `stripFinalNewline` must only follow those170const testNoOutputAllStripFinalNewline = async (t, buffer, stripFinalNewline, execaMethod) => {171 const {all} = await execaMethod('noop-both.js', {all: true, buffer, stripFinalNewline});172 t.is(all, `${foobarString}\n`);173};174175test('buffer: {stderr: false} only follows the buffered "stripFinalNewline" in result.all', testNoOutputAllStripFinalNewline, {stderr: false}, {stdout: false, stderr: true}, execa);176test('buffer: {stdout: false} only follows the buffered "stripFinalNewline" in result.all', testNoOutputAllStripFinalNewline, {stdout: false}, {stdout: true, stderr: false}, execa);177test('buffer: {stderr: false} only follows the buffered "stripFinalNewline" in result.all, sync', testNoOutputAllStripFinalNewline, {stderr: false}, {stdout: false, stderr: true}, execaSync);178test('buffer: {stdout: false} only follows the buffered "stripFinalNewline" in result.all, sync', testNoOutputAllStripFinalNewline, {stdout: false}, {stdout: true, stderr: false}, execaSync);179180// `result.all` requires the `all` option, even when only one of the two file descriptors is buffered181const testNoAllWithoutOption = async (t, buffer, execaMethod) => {182 const {all} = await execaMethod('noop-both.js', {buffer, stripFinalNewline: false});183 t.is(all, undefined);184};185186test('buffer: {stdout: false} does not set result.all', testNoAllWithoutOption, {stdout: false}, execa);187test('buffer: {stderr: false} does not set result.all', testNoAllWithoutOption, {stderr: false}, execa);188test('buffer: {stdout: false} does not set result.all, sync', testNoAllWithoutOption, {stdout: false}, execaSync);189test('buffer: {stderr: false} does not set result.all, sync', testNoAllWithoutOption, {stderr: false}, execaSync);190191const testTransform = async (t, objectMode, execaMethod) => {192 const lines = [];193 const {stdout} = await execaMethod('noop.js', {194 buffer: false,
37 unmodified lines
232test('buffer: false > emits end event on stdio[*] when promise is rejected', testStreamEnd, 3, false);233test('buffer: true > emits end event on stdout when promise is rejected', testStreamEnd, 1, true);234test('buffer: true > emits end event on stderr when promise is rejected', testStreamEnd, 2, true);235test('buffer: true > emits end event on stdio[*] when promise is rejected', testStreamEnd, 3, true);236237// When only one file descriptor is buffered, `result.all` is read from its own stream, not from `subprocess.all`.238// `subprocess.all` still merges both file descriptors, so it must be drained. Otherwise, it fills up and applies backpressure on them, hanging the subprocess which is still writing to them.239const LARGE_OUTPUT = 1e6;240241const testNoBufferAllBackpressure = async (t, fdNumber, buffer) => {242 const {exitCode, all} = await execa('noop-fd-large.js', [`${fdNumber}`, `${LARGE_OUTPUT}`], {all: true, buffer});243 t.is(exitCode, 0);244 t.is(all.length, LARGE_OUTPUT);245};246247// Without the fix, the subprocess hangs, so it is given a `timeout` to turn the hang into a failed assertion248test('all: true does not hang on a large stdout with buffer: {stderr: false}', testNoBufferAllBackpressure, 1, {stderr: false});249test('all: true does not hang on a large stderr with buffer: {stdout: false}', testNoBufferAllBackpressure, 2, {stdout: false});250251// `subprocess.all` must keep interleaving a file descriptor which is not buffered, even though Execa does not read it itself252const testAllStreamWithNoBuffer = async (t, fdNumber, optionName) => {253 const subprocess = execa('noop-fd.js', [`${fdNumber}`, foobarString], {all: true, buffer: {[optionName]: false}});254 const [, allContents] = await Promise.all([subprocess, getStream(subprocess.all)]);255 t.is(allContents, foobarString);256};257258test('subprocess.all includes an unbuffered stdout', testAllStreamWithNoBuffer, 1, 'stdout');259test('subprocess.all includes an unbuffered stderr', testAllStreamWithNoBuffer, 2, 'stderr');
modified:test/verbose/output-enable.js+15 added
33 unmodified lines
34test('Prints stderr, verbose "full", sync', testPrintOutput, 'full', 2, true);35test('Prints stdout, verbose "full", fd-specific, sync', testPrintOutput, stdoutFullOption, 1, true);36test('Prints stderr, verbose "full", fd-specific, sync', testPrintOutput, stderrFullOption, 2, true);3738// `subprocess.all` is created and piped into by Execa itself, which must not disable `verbose`39const testPrintOutputAll = async (t, verbose, isSync) => {40 const {stderr} = await nestedSubprocess('noop-both.js', [foobarString], {verbose, all: true, isSync});41 // An fd-specific `verbose` prints a single file descriptor, while `'full'` prints both42 const lineCount = verbose === 'full' ? 2 : 1;43 t.deepEqual(getOutputLines(stderr), Array.from({length: lineCount}, () => `${testTimestamp} [0] ${foobarString}`));44};4546test('Prints stdout and stderr, verbose "full", all: true', testPrintOutputAll, 'full', false);47test('Prints stdout, verbose "full", all: true, fd-specific', testPrintOutputAll, stdoutFullOption, false);48test('Prints stderr, verbose "full", all: true, fd-specific', testPrintOutputAll, stderrFullOption, false);49test('Prints stdout and stderr, verbose "full", all: true, sync', testPrintOutputAll, 'full', true);50test('Prints stdout, verbose "full", all: true, fd-specific, sync', testPrintOutputAll, stdoutFullOption, true);51test('Prints stderr, verbose "full", all: true, fd-specific, sync', testPrintOutputAll, stderrFullOption, true);5253const testNoPrintOutput = async (t, verbose, fdNumber, isSync) => {54 const {stderr} = await nestedSubprocess('noop-fd.js', [`${fdNumber}`, foobarString], {verbose, ...fullStdio, isSync});55 t.is(getOutputLine(stderr), undefined);56};
108 unmodified lines
modified:types/return/result.d.ts+1 added-1 removed
32 unmodified lines
33 The output of the subprocess with `result.stdout` and `result.stderr` interleaved.3435 This requires the `all` option to be `true`.3637 This is `undefined` if both `stdout` and `stderr` options are set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.37 This is `undefined` if both `stdout` and `stderr` options are set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false` for both.3839 This is an array if the `lines` option is `true`, or if either the `stdout` or `stderr` option is a transform in object mode.40 */41 all: ResultAll<OptionsType>;
162 unmodified lines
modified:types/subprocess/subprocess.d.ts+1 added-1 removed
23 unmodified lines
24 Stream combining/interleaving `subprocess.stdout` and `subprocess.stderr`.2526 This requires the `all` option to be `true`.2728 This is `undefined` if `stdout` and `stderr` options are set to `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.28 This is `undefined` if both `stdout` and `stderr` options are set to `'inherit'`, `'ignore'`, `Writable` or `integer`.29 */30 all: SubprocessAll<OptionsType>;3132 /**
116 unmodified lines