You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG REPORT] - Embedded quotes in %serviceName% code smell with uncertain runtime impact #20
In code/modules/services.bat, lines 130–144 assign service names using the pattern:
if %N%==1 (set serviceName="lfsvc")
if %N%==2 (set serviceName="MapsBroker")
...
In CMD, set serviceName="lfsvc" stores the literal string "lfsvc" including the double-quote characters as part of the value. The correct idiomatic pattern to avoid this is:
if %N%==1 (set "serviceName=lfsvc")
Steps to reproduce
Run services.bat as Administrator on any Windows 10/11 machine.
Pick any service from the menu (e.g., option [1] Location Foundation Service).
Note its current state displayed in the menu ([Disabled] in green or [Enabled] in red).
Expected behavior
Disable path (expected: Enabled → Disabled):
If the service shows [Enabled], select its number and press Enter.
The menu should refresh with the service now showing [Disabled].
If it does → disable path works.
Actual behavior
Enable path (expected: Disabled → Enabled):
Now the service shows [Disabled]. Select its number again and press Enter.
The menu should refresh with the service now showing [Enabled].
If it does → enable path works, bug does not manifest.
If it stays [Disabled] → enable path is broken, bug confirmed.
Activity