-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
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
_ (underscore) command wrongly updated if previous output was filtered #579
Comments
By the way, opening a file in debug mode is not necessary for reproducing the issue. |
Ok, I can reproduce... However, I even wonder if this command is useful at all. Note that
I believe this happens because visual messes up with the RzCons buffer
When you use |
I never used |
There is |
> echo hello world
# hello world
> echo $_ hello
# world hello
> echo $_
# hello
> echo echo hello
# echo hello
> $(!!)
# hello |
In Rizin I use Imagine doing
|
Ok so some questions:
|
In |
I don't expect Rizin's I expect Try the following in bash/zsh: > echo hello; echo $_ world; echo hello $_
# And then the following:
> echo hello; echo !! world; echo hello !! |
The bug is still present. It now works when using |
Work environment
rizin -v
full output, not truncated (mandatory)Expected behavior
_
is updated with the result of a previous grep (~
) or a pipe (|
).Actual behavior
_
breaks and contains unknown/wrong output.Steps to reproduce the behavior
Whereas the following works as expected:
Funnily,
echo
output changes (to something also wrong) if you enter visual panels mode (v
) beforeizq ~Usage
and then echo.Note that
_
only contains the output of the Rizin command if a pipe was used previously as a filter:This issue is also present in radare2.
The text was updated successfully, but these errors were encountered: