- May 07, 2024
-
-
Based on a patch by Dimitry Sokolov. Signed-off-by:
Eric Pouech <epouech@codeweavers.com>
-
Based on a test case from Dimitry Sokolov. Signed-off-by:
Eric Pouech <epouech@codeweavers.com>
-
- Apr 01, 2024
-
-
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56498 Signed-off-by:
Eric Pouech <epouech@codeweavers.com>
-
Signed-off-by:
Eric Pouech <epouech@codeweavers.com>
-
- Feb 12, 2024
- Oct 09, 2023
- Sep 04, 2023
- Aug 25, 2023
- Jul 05, 2023
- Jun 26, 2023
-
-
'if exists' takes a parameter which can be directory, directory/, directory/. directory\ or directory\. for example, and should equate to true if the directory exists. The syntax directory\ is explicitly rejected by FindFirstFile and hence was not working - look for this specific case, and if found append a '.'. Follow-up commit of bc9d68bc Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55130#add_comment
-
- Jun 21, 2023
-
-
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55097 Signed-off-by:
Liam Middlebrook <lmiddlebrook@nvidia.com>
-
- Nov 10, 2022
-
-
- Jan 25, 2022
-
-
Signed-off-by:
Eric Pouech <eric.pouech@gmail.com> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Sep 08, 2021
-
-
Signed-off-by:
Bernhard Übelacker <bernhardu@mailbox.org> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Feb 10, 2021
-
-
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50642 Signed-off-by:
Roman Pišl <rpisl@seznam.cz> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50641 Signed-off-by:
Roman Pišl <rpisl@seznam.cz> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Sep 11, 2020
-
-
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48397 Signed-off-by:
Myah Caron <qsniyg@protonmail.com> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- May 04, 2020
-
-
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47770 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48738 Signed-off-by:
Bernhard Übelacker <bernhardu@mailbox.org> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Aug 23, 2019
-
-
Found while trying to look into bug 44236. A batch script is executed containing a line like this: if (%1)==(p) start /W " " "%SFDIR%WSFplot" wr2300.t35 3 This returns an error like this: Syntax error Can't recognize 'p' as an internal or external command, or batch script. It looks like native does handle the brackets differently when contained inside the condition part of the if command. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44338 Signed-off-by:
Bernhard Übelacker <bernhardu@mailbox.org> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Aug 21, 2019
-
-
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46983 Signed-off-by:
Bernhard Übelacker <bernhardu@mailbox.org> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Dec 26, 2018
-
-
Signed-off-by:
Alexander Coffin <alexcoffin1999@gmail.com> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Dec 11, 2018
-
-
Alexandre Julliard authored
Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Oct 15, 2018
-
-
Signed-off-by:
Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Sep 11, 2018
-
-
When processing a (..) multiline section, each line is processed and if it starts with a '@' it is not echoed, but more importantly if is 'rem' then anything else on that line should be ignored. The reported issue was that a pipe was being executed when it was hidden behind a rem, which was trigged by the preceeding '@' character not being skipped. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45729 Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
With the 'for' loop /f syntax, if tokens are requested the the normal syntax is something like tokens=1,2* but there is valid syntax like 1,2,* (which effectively means the same). Make this other syntax work. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45722 Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
Avoid whitespace affecting the parsing of a for loops items. The leading and trailing quote or backtick needed removing, and it was assumed that the trailing character would be that character, which was wrong when there was whitespace unless the parameter is trimmed. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45731 Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Aug 29, 2018
-
-
When a batch label is called, %0 and %~0 should be the label being called, and if you start adding modifiers to it (eg %~d0) then you get details of the batch program containing the label. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44369 Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
'if exists' takes a parameter which can be directory, directory\ or directory\. for example, and should equate to true if the directory exists. The syntax directory\ is explicitly rejected by FindFirstFile and hence was not working - look for this specific case, and if found append a '.'. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45506 Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
for /f can run a program and parse its output. The program name can supply args and be quoted or not. If quoted, wine fails to run the program because internally we were adding an extra pair of quotes. These are not needed and can be removed. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39906 Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
A single line if statement causes problems when it has redirects and/or continuation type operators (|, &&, || etc) because it is expected that if there is more than one command in the 'if', then it will use brackets. This patch changes the 'if' parsing to emulate brackets at a continuation character. In addition, 'for' and 'if' statements do not have their output redirected immediately, instead it is redirected on the individual commands being executed not the statement itself. We were opening the redirect once for the 'if' and once for the processing of the statement inside the if. Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
When 's' is used as a modifier, the paths that are presented to the other modifiers needs to be a short path. Given the 'filename' part of the path may not exist, we cannot use GetShortPathName directly without first removing the filename part to just leave the directory bit. Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Aug 16, 2018
-
-
Semicolons are also allowed inside a path, as long as they are quoted. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45552 Signed-off-by:
Fabian Maurer <dark.shadow4@web.de> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Jul 16, 2018
-
-
When inside a for loop, an 'if' statement is processed and the true part taken. Once all the commands in the true are processed, the else part is parsed, and a flag set to skip all commands in the else part. Unfortunately this flag is left on even when the if statement ends, meaning subsequent commands are also skipped. Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
for /f allows a special syntax of tokens=* (rather than tokens=1* for example) which just means put the whole line into the next variable). Note the handling of the 'next variable' was wrong in the case of it being 'A' or 'a' as the wrap calculation was wrong, but this only affected using this new syntax. Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Jul 05, 2018
-
-
A call or a goto will find the next matching label not the first one in the file. This means it could be later in the file or it could be earlier in the file, so make goto (which 'call' also uses) first scan from current file position to the end of the file, and subsequently from the start of the file to the wrap point. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42823 Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
This allows whitespace and any other text on the line when changing drive letters. Mostly I expect it crops up when commands are concatenated and the readability whitespace is added to the end of the command. For example C: & dir results in "C: " and "dir" as the two commands. We cannot unconditionally remove whitespace as some commands rely on it. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=40694 Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Jun 25, 2018
-
-
A for loop can be working through a wildcarded subdirectory, but when processing the first file in the subdirectory, it stores the prefix in a static variable which gets overwritten during the 'for' body processing. Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
Signed-off-by:
Jason Edmeades <us@edmeades.me.uk> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-
- Apr 27, 2018
-
-
Signed-off-by:
Bernhard Übelacker <bernhardu@mailbox.org> Signed-off-by:
Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by:
Alexandre Julliard <julliard@winehq.org>
-