microsoft / QuantumKatas

Tutorials and programming exercises for learning Q# and quantum computing
MIT License
4.53k stars 1.21k forks source link

getting issue in exit command #897

Closed ravi46kom closed 8 months ago

ravi46kom commented 10 months ago

Hi, I'm getting a issue in container PowerShell, I'm running a the command '$result = docker exec -ti container PowerShell "C:\download\abc.ps1' and in 'abc.ps1' there is a command 'exit 1'. The case is that I'm getting all values in $result variable including $LASTEXITCODE But when I'm running "EXIT 1" the container PowerShell gets exited but not returning the exit value '1' in $result variable. I'm getting this unexpected behavior using container PowerShell only.

tcNickolas commented 8 months ago

This seems to be a PowerShell question not related to the use of the Quantum Katas.