Handle the + character only optionally as a token seperator, so that other commands like rename are not affected.

svn path=/trunk/; revision=56349
This commit is contained in:
Timo Kreuzer 2012-04-14 21:35:58 +00:00
parent a77220cc37
commit ece4aa3f3f
16 changed files with 87 additions and 87 deletions

View file

@ -275,7 +275,7 @@ static BOOL expand (LPINT ac, LPTSTR **arg, LPCTSTR pattern)
* are spaces and slashes ('/').
*/
LPTSTR *split (LPTSTR s, LPINT args, BOOL expand_wildcards)
LPTSTR *split (LPTSTR s, LPINT args, BOOL expand_wildcards, BOOL handle_plus)
{
LPTSTR *arg;
LPTSTR start;
@ -315,7 +315,7 @@ LPTSTR *split (LPTSTR s, LPINT args, BOOL expand_wildcards)
/* check for separators */
if (_istspace(*s) ||
(*s == _T('/')) ||
(*s == _T('+')))
(handle_plus && (*s == _T('+'))))
{
/* Make length at least one character */
if (s == start) s++;