Open pawelszramowski opened 2 years ago
If echo off
isn't used, then individual statements have to be prefixed with @
to prevent echoing them. I just implemented this for the new versions of "activate.bat" and "deactivate.bat" that were proposed in issue #88706. Note that ending with echo on
would be just as bad, since the caller may have it off. I haven't seen a way to detect the current echo state that doesn't involve ugly hacks such as writing to a temporary file.
Bug report
Consider the following batch script:
The expected output is:
The actual output is:
This is caused by
@echo off
at the beginning of both scripts that need to be undone after calling them:Your environment
Linked PRs