1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Fix REPL when env.HOME isn't available - #2945

This commit is contained in:
Nami-Doc 2013-04-21 16:03:30 +02:00
parent 3b38153759
commit 5162472f16
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
replDefaults = {
prompt: 'coffee> ',
historyFile: path.join(process.env.HOME, '.coffee_history'),
historyFile: process.env.HOME ? path.join(process.env.HOME, '.coffee_history') : void 0,
historyMaxInputSize: 10240,
"eval": function(input, context, filename, cb) {
var Assign, Block, Literal, Value, ast, err, js, _ref1;

View file

@ -7,7 +7,7 @@ CoffeeScript = require './coffee-script'
replDefaults =
prompt: 'coffee> ',
historyFile: path.join(process.env.HOME, '.coffee_history')
historyFile: path.join process.env.HOME, '.coffee_history' if process.env.HOME
historyMaxInputSize: 10240
eval: (input, context, filename, cb) ->
# XXX: multiline hack.