You should add the "-p" option to your command (as documented in the xxd man page):
$ echo -en '41414141\n\n' | xxd -r -p AAAA$ Antonio On Wed, Nov 27, 2019 at 6:25 AM aslvim <[email protected]> wrote: > xxd -r hits an infinite loop for some inputs: > > for example, echo -en '41414141\n\n' | xxd -r will run forever, spinning. > > *Environment:* > > xxd V1.10 27oct98 by Juergen Weigert > VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 7 2019 22:30:47) > > x86_64 Arch Linux > -- /||\ | Antonio Colombo / || \ | [email protected] / () \ | [email protected] (___||___) | [email protected] -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAFuJYvtEEczww9%3DHTL5ude6fYha0ksi0suQY9rSKM6z8rJm0qg%40mail.gmail.com.
