Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
fc60b0e9a (dev), c66944c67 (2.1)
-
License server development 9
Description
Found out following behaviour on Windows 11:
# In powershell, $? returns boolean representing the fact if last exit code was 0 # Last exit code is also stored in $LastExitCode env variable PS C:\Program Files\qtlicd> .\qtlicensetool.exe --permanent add Success. Long-term reservation cb7e45ea-505f-4123-acb2-b5aacaf2276d created for user testuser. Expiry date: 2024-03-31. License ID: 10950891 PS C:\Program Files\qtlicd> $? False PS C:\Program Files\qtlicd> code test.txt PS C:\Program Files\qtlicd> $? True PS C:\Program Files\qtlicd> $LastExitCode 0 PS C:\Program Files\qtlicd> .\qtlicensetool.exe --permanent add Success. Long-term reservation b5de7f11-cdf8-4b67-a6c5-0d649e2074b1 created for user testuser. Expiry date: 2024-03-31. License ID: 10950891 PS C:\Program Files\qtlicd> $LastExitCode 1
Exit code should be 0, not 1.