From b3dec55f296b3155d3c293b92160877862a7fadc Mon Sep 17 00:00:00 2001 From: chabou Date: Thu, 28 Jul 2016 19:44:50 +0200 Subject: [PATCH] Preventing shell history pollution (#478) --- lib/actions/ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/actions/ui.js b/lib/actions/ui.js index 39056bcf..22252d4b 100644 --- a/lib/actions/ui.js +++ b/lib/actions/ui.js @@ -147,9 +147,9 @@ export function showPreferences () { rpc.once('session data', () => { dispatch(sendSessionData( uid, - ['echo Attempting to open ~/.hyperterm.js with your \$EDITOR', // eslint-disable-line no-useless-escape - 'echo If it fails, open it manually with your favorite editor!', - 'bash -c "exec env $EDITOR ~/.hyperterm.js"', + [' echo Attempting to open ~/.hyperterm.js with your \$EDITOR', // eslint-disable-line no-useless-escape + ' echo If it fails, open it manually with your favorite editor!', + ' bash -c "exec env $EDITOR ~/.hyperterm.js"', '' ].join('\n') ));