mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
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:
committed by
Florian Mounier
parent
1f9d263ad7
commit
9bcc989149
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user