Skip to content
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

builtin grep+sort prints a lot of empty lines #23588

Open
wgrr opened this issue Nov 2, 2024 · 2 comments
Open

builtin grep+sort prints a lot of empty lines #23588

wgrr opened this issue Nov 2, 2024 · 2 comments

Comments

@wgrr
Copy link
Collaborator

wgrr commented Nov 2, 2024

Environment

sáb 02 nov 2024 09:48:51 -03
radare2 5.9.7 32870 @ linux-x86-64
birth: git.5.9.6-119-ge25d1beb23 2024-11-02__12:45:12
commit: e25d1beb23397520603ed78d98ed468698fe0abf
options: gpl -O? cs:5 cl:2 meson
Linux x86_64

Test

% r2 test/bins/elf/dwarf5_line
[0x00001040]> pd~$mov




































































            0x00001046      4989d1         mov r9, rdx
            0x0000104a      4889e2         mov rdx, rsp
            0x0000113a      4889e5         mov rbp, rsp
        │   0x00001083      488b053e2f..   mov rax, qword [reloc._ITM_deregisterTMCloneTable] ; [0x3fc8:8]=0
        ╎   0x000010b1      4889f0         mov rax, rsi
       │╎   0x000010c4      488b050d2f..   mov rax, qword [reloc._ITM_registerTMCloneTable] ; [0x3fd8:8]=0
       │╎   0x000010f6      4889e5         mov rbp, rsp
       │╎   0x0000110d      c605042f00..   mov byte [loc._edata], 1    ; obj.__TMC_END__
      ││╎   0x000010fb      488b3d0e2f..   mov rdi, qword [obj.__dso_handle] ; [0x4010:8]=0x4010 obj.__dso_handle
@trufae trufae added this to the 5.9.8 - gigglebytes milestone Nov 3, 2024
@trufae
Copy link
Collaborator

trufae commented Nov 4, 2024

what would you expect to see with this invalid filter expression?

@wgrr
Copy link
Collaborator Author

wgrr commented Nov 13, 2024

what would you expect to see with this invalid filter expression?

Is it invalid? I thought it would be akin to | grep mov | sort. If it's invalid I'd like to see a warning/error message, if it's valid act like grep|sort i.e print exactly lines which matched the pattern, not create new ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants