Skip to content

Commit a7bd1bb

Browse files
committed
Merge pull request #5 from minrk/empty-shell
handle empty but defined SHELL env
2 parents 924f945 + 2bddfb8 commit a7bd1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_notebook/terminal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from . import api_handlers
1414

1515
def initialize(webapp):
16-
shell = os.environ.get('SHELL', 'sh')
16+
shell = os.environ.get('SHELL') or 'sh'
1717
terminal_manager = webapp.settings['terminal_manager'] = NamedTermManager(shell_command=[shell])
1818
terminal_manager.log = app_log
1919
base_url = webapp.settings['base_url']

0 commit comments

Comments
 (0)