Opened 15 years ago
Closed 14 years ago
#1663 closed Bugs (fixed)
build.bat cannot set/reset ERRORLEVEL
Reported by: | Owned by: | René Rivera | |
---|---|---|---|
Milestone: | Boost.Jam 3.1.17 | Component: | bjam |
Version: | Boost.Jam 3.1.16 | Severity: | Problem |
Keywords: | Cc: |
Description
The file build.bat says
REM NOTE: The "setlocal & endlocal" construct is used to reset the errorlevel to 0.
But this does't work on Windows 2000/XP/Vista. And says aloso
REM NOTE: The "set _error_=" construct is used to set the errorlevel to 1
This does't work on Windows Vista.
So, my Proposed resolution is
- reset the errorlevel to 0
- ver>NUL
- set the errorlevel to 1
- dir NUL>NUL 2>&1
Change History (2)
comment:1 by , 14 years ago
Milestone: | Boost 1.36.0 → Boost.Jam 3.1.17 |
---|---|
Version: | Boost 1.34.1 → Boost.Jam 3.1.16 |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [49884]) Adjust error un/setting for compatibility with more Windows CMD versions. (fixes #1663)