Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
od: duplicate marker incorrectly repeats (#498)
* I noticed the duplicate line identifier "*\n" was repeated for each duplicate line, instead of being printed only once * In dump_line() the variable $ml had no effect; possibly it was broken by previous changes * Make $ml a flag which is set when previous line was duplicate and we already printed "*\n"; flag is set until a line differs * With this patch, output is equivalent when dumping /dev/zero on OpenBSD and Linux %dd if=/dev/zero bs=1000 count=1 2> /dev/null | perl od -c 00000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 00001740 \0 \0 \0 \0 \0 \0 \0 \0 00001750
- Loading branch information