Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not
The prompt item status does not properly represent the $status of the previous command executed.
status
not false
✘ 1
$status
It seems that it's not taking account the not because if you just type in false or true normally, it works as expected.
false
true
Thank you for maintaining Tide and reading my bug report!
The text was updated successfully, but these errors were encountered:
This is actually quite complex unfortunately. I'll have to do some digging and thinking about how to best deal with this.
Here's a sneak peek of the complexity which arises due to piping, and how $pipestatus and $status interact with it:
$pipestatus
ilan@arch ~> not true | true ilan@arch ~ [0|0] 1> printf %s\n "status: $status" "pipestatus: $pipestatus" status: 1 pipestatus: 0 0 ilan@arch ~> true | not false ilan@arch ~> printf %s\n "status: $status" "pipestatus: $pipestatus" status: 0 pipestatus: 0 1 ilan@arch ~> false | not true ilan@arch ~ [1|0] 1> printf %s\n "status: $status" "pipestatus: $pipestatus" status: 1 pipestatus: 1 0
Describe the bug
The prompt item
status
does not properly represent the $status of the previous command executed.Steps to reproduce
not false
✘ 1
$status
It seems that it's not taking account the
not
because if you just type infalse
ortrue
normally, it works as expected.Thank you for maintaining Tide and reading my bug report!
The text was updated successfully, but these errors were encountered: