From 6c229ce0762113fb321fbd04234925a33dc683a2 Mon Sep 17 00:00:00 2001 From: Roselyne Chotin-Avot Date: Fri, 5 May 2017 12:01:26 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20=E2=80=98-=E2=80=98=20=20from=20zsh=20?= =?UTF-8?q?shell=20on=20MacOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap/coriolisEnv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/coriolisEnv.py b/bootstrap/coriolisEnv.py index 34940328..e359cf8d 100755 --- a/bootstrap/coriolisEnv.py +++ b/bootstrap/coriolisEnv.py @@ -147,7 +147,7 @@ def guessShell (): #if os.environ.has_key('SHELL'): return os.environ['SHELL'] psCommand = subprocess.Popen ( ['ps', '-p', str(os.getppid()) ], stdout=subprocess.PIPE ) - shell = psCommand.stdout.readlines()[1][:-1].split()[-1] + shell = psCommand.stdout.readlines()[1][:-1].split()[-1].lstrip('-') whichCommand = subprocess.Popen ( ['which', shell ], stdout=subprocess.PIPE ) shellPath = whichCommand.stdout.readlines()[0][:-1]