Skip to content

Commit

Permalink
1. уточнение 4945: не работала команда if exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
zg0 committed May 2, 2017
1 parent d65c810 commit adf4047
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions far/changelog
@@ -1,3 +1,7 @@
zg 02.05.2017 16:38:35 +0200 - build 4949

1. уточнение 4945: не работала команда if exist.

drkns 01.05.2017 22:42:32 +0000 - build 4948

1. Уточнение 4945.
Expand Down
8 changes: 4 additions & 4 deletions far/execute.cpp
Expand Up @@ -1109,7 +1109,7 @@ static const wchar_t *PrepareOSIfExist(const string& CmdLine)
if (!PtrCmd || !*PtrCmd || !starts_with_icase(PtrCmd, Token_If)) //??? IF/I не обрабатывается
break;

PtrCmd += Token_If.size() + 1;
PtrCmd += Token_If.size();

while (*PtrCmd && IsSpace(*PtrCmd))
++PtrCmd;
Expand All @@ -1121,7 +1121,7 @@ static const wchar_t *PrepareOSIfExist(const string& CmdLine)
{
Not=TRUE;

PtrCmd += Token_Not.size() + 1;
PtrCmd += Token_Not.size();

while (*PtrCmd && IsSpace(*PtrCmd))
++PtrCmd;
Expand All @@ -1133,7 +1133,7 @@ static const wchar_t *PrepareOSIfExist(const string& CmdLine)
if (*PtrCmd && starts_with_icase(PtrCmd, Token_Exist))
{

PtrCmd += Token_Exist.size() + 1;
PtrCmd += Token_Exist.size();

while (*PtrCmd && IsSpace(*PtrCmd))
++PtrCmd;
Expand Down Expand Up @@ -1203,7 +1203,7 @@ static const wchar_t *PrepareOSIfExist(const string& CmdLine)
else if (*PtrCmd && starts_with_icase(PtrCmd, Token_Defined))
{

PtrCmd += Token_Defined.size() + 1;
PtrCmd += Token_Defined.size();

while (*PtrCmd && IsSpace(*PtrCmd))
++PtrCmd;
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4948)m4_dnl
m4_define(BUILD,4949)m4_dnl

0 comments on commit adf4047

Please sign in to comment.