diff options
author | Karl Berry <karl@freefriends.org> | 2011-07-02 20:30:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-07-02 20:30:14 +0000 |
commit | 9a8d0bd31ab1ebd12d7a2bd823ffc9e5d9021cf6 (patch) | |
tree | 3779cf3a33122f00f607100f8f3aa386d53eee29 /Master/tlpkg/TeXLive | |
parent | b568316c57a65ca9faa1252a4adba29011822b94 (diff) |
(quotify_path_with_spaces): always "quote" on
Unix, as we were doing before.
git-svn-id: svn://tug.org/texlive/trunk@23180 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 04e5a6189b7..7d18d86c4ea 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -3180,15 +3180,17 @@ sub process_logging_options { =pod -This function takes a single argument I<path> and adds -an additional C<"> around it if I<path> contains any spaces or -(on Windows only) some other special characters. +This function takes a single argument I<path> and returns it with +C<"> chars surrounding it on Unix. On Windows, the C<"> chars are only +added if I<path> a few special characters, since unconditional quoting +leads to errors there. In all cases, any C<"> chars in I<path> itself +are (erroneously) eradicated. =cut sub quotify_path_with_spaces { my $p = shift; - my $m = win32() ? '[+=^&();,!%\s]' : ' '; + my $m = win32() ? '[+=^&();,!%\s]' : '.'; if ( $p =~ m/$m/ ) { $p =~ s/"//g; # remove any existing double quotes $p = "\"$p\""; |