Fix bug where PATH contains '.'

Starting bash without PATH set triggers something where PATH then
contains '.', preventing many tools from functionning correctly.

Starting a login shell prevents this.
This commit is contained in:
Philippe Vaucher
2016-08-10 20:03:36 +02:00
committed by Florian Mounier
parent 1f9d263ad7
commit 9bcc989149

View File

@@ -213,7 +213,7 @@ class Terminal(object):
args = tornado.options.options.cmd.split(' ')
else:
args = [tornado.options.options.shell or self.callee.shell]
args.append('-i')
args.append('-il')
# In some cases some shells don't export SHELL var
env['SHELL'] = args[0]