Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Pass -e to node when using -p
Browse files Browse the repository at this point in the history
Under Node.js v0.8, `node -p` alone does nothing, see nodejs/node-v0.x-archive#3938.
  • Loading branch information
sonicdoe committed Apr 3, 2015
1 parent d32eb86 commit 54cd895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tap/umask-lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ var pkg = path.resolve(__dirname, "umask-lifecycle")
var pj = JSON.stringify({
name:"x",
version: "1.2.3",
scripts: { umask: "$npm_execpath config get umask && echo \"$npm_config_umask\" && node -p 'process.umask()'" }
scripts: { umask: "$npm_execpath config get umask && echo \"$npm_config_umask\" && node -pe 'process.umask()'" }
}, null, 2) + "\n"

var umask = process.umask()
var expected = [
"",
"> x@1.2.3 umask "+path.join(__dirname, "umask-lifecycle"),
"> $npm_execpath config get umask && echo \"$npm_config_umask\" && node -p 'process.umask()'",
"> $npm_execpath config get umask && echo \"$npm_config_umask\" && node -pe 'process.umask()'",
"",
sprintf("%04o", umask),
sprintf("%04o", umask),
Expand Down

0 comments on commit 54cd895

Please sign in to comment.