On Wed 15 Nov 2023 at 08:04:42 -0300, Crystal Kolipe wrote: > The attached patch fixes a bug in /bin/cat when using -n with multiple input > files. This bug seems to have been introduced in 4.3BSD-Reno. > > Numbering currently starts over at 1 for each input file, here is a simple > reproducer: If you want to have continuing (non-restarting) numbering for multiple input files, one could use "cat file1 file2 | cat -n". -Olaf. -- ___ Olaf 'Rhialto' Seibert <rhialto/at/falu.nl> \X/ There is no AI. There is just someone else's work. --I. Rose
Attachment:
signature.asc
Description: PGP signature