From ed160e5d759217500ecc7602197ada9472ca38ac Mon Sep 17 00:00:00 2001 From: Neal Davis Date: Mon, 27 Jan 2014 14:41:04 -0600 Subject: [PATCH] swc-windows-installer.py: Quote $PATH export to account for spaces. Many people have spaces in their Windows user names, leading to trouble with an unquoted $PATH export. This file now quotes the $PATH addition accordingly. --- swc-windows-installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swc-windows-installer.py b/swc-windows-installer.py index 041642a..f10377d 100755 --- a/swc-windows-installer.py +++ b/swc-windows-installer.py @@ -83,7 +83,7 @@ def update_bash_profile(extra_paths=()): lines = [ '', '# Add paths for Software-Carpentry-installed scripts and executables', - 'export PATH=$PATH:{}'.format(':'.join( + 'export PATH=\"$PATH:{}\"'.format(':'.join( make_posix_path(path) for path in extra_paths),), '', '# Make nano the default editor', -- 2.26.2