Skip to content

Commit

Permalink
Fix bug where PATH contains '.'
Browse files Browse the repository at this point in the history
Starting bash without PATH set triggers something where PATH then
contains '.', preventing many tools from functionning correctly.

Starting a login shell prevents this.
  • Loading branch information
Silex authored and paradoxxxzero committed Sep 5, 2016
1 parent 1f9d263 commit 9bcc989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion butterfly/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def shell(self):
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]
Expand Down

0 comments on commit 9bcc989

Please sign in to comment.