Running an alias using the Powershell shell plugin with rez-env doesn't return the correct exit code when running the command in-line.
Environment
Windows 10
Rez 2.112.0
Rez python version 3.7.9
To Reproduce
Create a package.py for a test_alias package with the following definition:
name = "test_alias"
version = "1.0.0"
build_command = ""
def commands():
alias('make_error', 'python')
2. Install the package to your package repository.
3. Run `rez-env python -c "raise"`
4. Observe $LASTEXITCODE as being 1 as expected.
5. Run `rez-env make_error -c "raise"`
6. Observe $LASTEXITCODE as being 0 instead of the correct value of 1.
**Expected behavior**
$LASTEXITCODE is 1.
**Actual behavior**
$LASTEXITCODE is 0.
Running an alias using the Powershell shell plugin with
rez-env
doesn't return the correct exit code when running the command in-line.Environment
To Reproduce
package.py
for atest_alias
package with the following definition:version = "1.0.0"
build_command = ""
def commands(): alias('make_error', 'python')