[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: xxd trailing spaces
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2020-10-20 16:59:05
Message-ID: CAK1hOcNmA=MGShTH7dmuXmDO0=yX-MX6=qAccK-5qcsJ7NLaXA () mail ! gmail ! com
[Download RAW message or body]

Thanks for the report.
Fixed in git, please try it.

On Sat, Aug 15, 2020 at 3:18 PM David Timber <mieabby@gmail.com> wrote:
>
> Compare the output of these two command:
>
> dd if=/dev/zero bs=1 count=1 | busybox xxd -p | hexdump -C
> dd if=/dev/zero bs=1 count=1 | xxd -p | hexdump -C
>
> The bb version of xxd prints extra trailing spaces(0x20). So, if you
> want to use the output of xxd command in your shell script, you'll
> need to trim the string. Adding "-c1" solves the issue. I didn't fully
> understand the code(hexdump-xxd.c), but I'm pretty sure it has
> something to do with -c option.
>
> Clearly, this is a different behaviour. If you think this a bug, here it is.
>
> Thank you.
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic