-
Notifications
You must be signed in to change notification settings - Fork 7.3k
module: new switch -x; support multiple #! args #7007
Commits on Jan 30, 2014
-
module: new switch; support multiple #! args
Interpreters invoked via #! only see one argument on some environments (Linux, Cygwin) This pull request enables a script to pass multiple arguments,such as v8 options, to node using a technique developed for other scripting languages (perl and ruby). Detailed justification and analysis in the attached file doc/Minux-X-Switch-Proposal.md This pull request *DOES NOT* make any changes to the public API of modules, which is a locked subsystem.
Configuration menu - View commit details
-
Copy full SHA for 81ff92f - Browse repository at this point
Copy the full SHA 81ff92fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f48d166 - Browse repository at this point
Copy the full SHA f48d166View commit details -
module: strip leading lines when -x switch set
Factor the code that removes '#!' into a function, Module._removePrologue. Module._removePrologue removes only the first #! line unless BOTH a) this is the main module (module.id === '.') AND b) the '-x' switch was passed on the command line. In case both a) and b) are true, Module._removePrologue removes lines until it finds a line which begins with "#!" and contains the substring "node".
Configuration menu - View commit details
-
Copy full SHA for 50c715a - Browse repository at this point
Copy the full SHA 50c715aView commit details -
command-line: add support for -x switch
Detect '-x' switch on command line and set global strip_until_shebang_node and property process._stripUntilShebangNode
Configuration menu - View commit details
-
Copy full SHA for c70963a - Browse repository at this point
Copy the full SHA c70963aView commit details -
PrintHelp: add documentation of -x switch
Add documentation of -x switch: "-x ignore text before #!node line"
Configuration menu - View commit details
-
Copy full SHA for e556eeb - Browse repository at this point
Copy the full SHA e556eebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44d4674 - Browse repository at this point
Copy the full SHA 44d4674View commit details -
Configuration menu - View commit details
-
Copy full SHA for adee60b - Browse repository at this point
Copy the full SHA adee60bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f26d0d - Browse repository at this point
Copy the full SHA 6f26d0dView commit details -
module: stop stripping lines when #!node seen
Explicit 'true' return value omitted when refactoring.
Configuration menu - View commit details
-
Copy full SHA for cc4a40a - Browse repository at this point
Copy the full SHA cc4a40aView commit details -
node: -x switch; no optional <dir> arg
Remove incorrect documentation referring to optional <dir> arg to proposed -x switch.
Configuration menu - View commit details
-
Copy full SHA for 365113b - Browse repository at this point
Copy the full SHA 365113bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0486637 - Browse repository at this point
Copy the full SHA 0486637View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b322ad - Browse repository at this point
Copy the full SHA 7b322adView commit details -
module: strip leading lines when -x switch set
Factor the code that removes '#!' into a function, Module._removePrologue. Module._removePrologue removes only the first #! line unless BOTH a) this is the main module (module.id === '.') AND b) the '-x' switch was passed on the command line. In case both a) and b) are true, Module._removePrologue removes lines until it finds a line which begins with "#!" and contains the substring "node".
Configuration menu - View commit details
-
Copy full SHA for a8e2660 - Browse repository at this point
Copy the full SHA a8e2660View commit details -
command-line: add support for -x switch
Detect '-x' switch on command line and set global strip_until_shebang_node and property process._stripUntilShebangNode
Configuration menu - View commit details
-
Copy full SHA for e4aac3c - Browse repository at this point
Copy the full SHA e4aac3cView commit details -
PrintHelp: add documentation of -x switch
Add documentation of -x switch: "-x ignore text before #!node line"
Configuration menu - View commit details
-
Copy full SHA for 8614f7c - Browse repository at this point
Copy the full SHA 8614f7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04fc386 - Browse repository at this point
Copy the full SHA 04fc386View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6dee25 - Browse repository at this point
Copy the full SHA e6dee25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e6542a - Browse repository at this point
Copy the full SHA 6e6542aView commit details -
module: stop stripping lines when #!node seen
Explicit 'true' return value omitted when refactoring.
Configuration menu - View commit details
-
Copy full SHA for ac85dad - Browse repository at this point
Copy the full SHA ac85dadView commit details -
node: -x switch; no optional <dir> arg
Remove incorrect documentation referring to optional <dir> arg to proposed -x switch.
Configuration menu - View commit details
-
Copy full SHA for 3478c0f - Browse repository at this point
Copy the full SHA 3478c0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eaf313 - Browse repository at this point
Copy the full SHA 5eaf313View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c0f17d - Browse repository at this point
Copy the full SHA 2c0f17dView commit details