| bencollver 28.02.2026, 00:52 |
save & restore environment (Developers) |
I ran into a situation in SvarDOS where the EDR-DOS command interpreter was creating duplicate environment variables. For example, when i ran the SET command, i might see multiple PATH= variables in its output. I believe it was related to running out of space in the environment. The way i worked around this problem was by increasing the size of the environment, and also by running COMMAND /C instead of CALL to run helper .bat files. With COMMAND /C the original environment is restored when the helper .bat file completes. |
| Rugxulo Usono, 28.02.2026, 03:18 @ bencollver |
save & restore environment |
> |
| bencollver 28.02.2026, 04:26 @ Rugxulo |
save & restore environment |
> 4DOS and NT's CMD both have "SETLOCAL". So if you don't need any vars to |
| Rugxulo Usono, 01.03.2026, 00:24 @ bencollver |
save & restore environment |
> > 4DOS and NT's CMD both have "SETLOCAL". So if you don't need any vars to |
| boeckmann Aachen, Germany, 28.02.2026, 10:23 @ bencollver |
save & restore environment |
> I ran into a situation in SvarDOS where the EDR-DOS command interpreter [...] |
| bencollver 28.02.2026, 15:20 @ boeckmann |
save & restore environment |
> > I ran into a situation in SvarDOS where the EDR-DOS command interpreter |
| boeckmann Aachen, Germany, 28.02.2026, 19:26 @ bencollver |
save & restore environment |
Is it the EDR command version from the SvarDOS package (this comes from https://github.com/SvarDOS/edrdos )? |
| bencollver 01.03.2026, 15:12 @ boeckmann |
save & restore environment |
> Is it the EDR command version from the SvarDOS package (this comes from |
| bencollver 08.03.2026, 00:45 @ boeckmann |
save & restore environment |
I reduced it to a test case. |
| jadoxa Queensland, Australia, 08.03.2026, 01:39 @ bencollver |
save & restore environment |
> COMMAND.COM is from EDR DOS 20250427 |
| bencollver 08.03.2026, 02:05 @ jadoxa |
save & restore environment |
> > COMMAND.COM is from EDR DOS 20250427 |
| boeckmann Aachen, Germany, 08.03.2026, 22:23 @ bencollver |
save & restore environment |
> > > COMMAND.COM is from EDR DOS 20250427 |
| boeckmann Aachen, Germany, 09.03.2026, 17:15 @ boeckmann |
save & restore environment |
Fixed by https://github.com/SvarDOS/edrdos/commit/579ab148df4d6af82752155137e0cad6a31b1a34 |
| bencollver 09.03.2026, 20:09 @ boeckmann |
save & restore environment |
> Fixed by |
Thread view