Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSchild_process spawningSingle-choice MCQ

With shell:false (the default for spawn/execFile), what does execFileSync('echo', ['$HOME']) print on a Unix system?

const out = execFileSync('echo', ['$HOME'], { encoding: 'utf8' }); console.log(out.trim());