Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-12-03 Thread Joe Forster/STA
Hi guys, I don't have any solution to the problem but while on the topic of FreeCOM and batch file parameters, I have discovered an issue which I believe is a genuine bug. Create a batch file, for example: ECHO %1 %2 %3 %4 %5 %6 %7 %8 %9 Then run it with a parameter like "http://www.example.c

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-12-03 Thread Matej Horvat
I don't have any solution to the problem but while on the topic of FreeCOM and batch file parameters, I have discovered an issue which I believe is a genuine bug. Create a batch file, for example: ECHO %1 %2 %3 %4 %5 %6 %7 %8 %9 Then run it with a parameter like "http://www.example.com/";. I

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-11-29 Thread Eric Auer
To add my 2 cents regarding link files... For stuff like DJGPP which has many tools, it is probably a good idea to make a SEPARATE directory for installing DJGPP and add that to the PATH :-) As NASM only includes a few files, it can indeed be in the generic FreeDOS bin directory anyway. Cheers, E

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-11-29 Thread Tom Ehlert
> Thank you for sharing your insight. It clearly looks like I will have to > figure out an alternative approach to my batch files. > Context: Such batch files are created by FDNPKG, my FreeDOS package > manager, as "links" to some commonly used applications like zip, upx, > nasm, etc, to avoid h

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-11-29 Thread Mateusz Viste
Hi Bret, Thank you for sharing your insight. It clearly looks like I will have to figure out an alternative approach to my batch files. Context: Such batch files are created by FDNPKG, my FreeDOS package manager, as "links" to some commonly used applications like zip, upx, nasm, etc, to avoid

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-11-29 Thread Mateusz Viste
On Mon, 28 Nov 2016 17:58:14 -0600, Rugxulo wrote: > Maybe put double quotes " " around args when invoking the .BAT? This doesn't change anything regarding how the equal characters are processed. Worse even, the callee ends up being called with too many arguments each time, since each "" argumen

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-11-28 Thread Bret Johnson
The equals sign is "special" when the DOS shell is processing values from the command line, and different versions of DOS may treat it differently. For example, in the FOR command it is basically treated as white space (the same as commas and real spaces). At least in some versions of DOS, the

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-11-28 Thread Rugxulo
Hi, On Mon, Nov 28, 2016 at 9:15 AM, Mateusz Viste wrote: > > Question is... is there any way to use "%1"-like arguments in a way that > would preserve possible '=' characters inside? Maybe put double quotes " " around args when invoking the .BAT? (Or use a superior shell like 4DOS.) --

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-11-28 Thread Mateusz Viste
Hi Tom, Thanks for your test - it shows that Microsoft is at least consistent with this behaviour, as odd as it is :) You got the same result as me on MS-DOS 6.0, ie "DOS processes the = character like a white space when found inside a %1, %2, %3 etc argument inside a batch file". FreeDOS (Fr

Re: [Freedos-devel] odd FreeDOS batch %1 %2 %3 behavior (differs from MS-DOS, too)

2016-11-28 Thread Tom Ehlert
Mateusz, after 30 years, new insights into DOS batch processing. on first sight, it seems to me that '=' is simply skipped by the command interpreter. testing on Windows XP (which is usually a supergroup of MSDOS) C:>echo >test.bat echo '%1' '%2' '%3' '%4' C:>test.bat /x=1 y=2 C:>echo '/x' '1'