tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

patch cat(1) improve -B



Hello,

cat(1) says:
-B bsize
Read with a buffer size of bsize bytes, instead of the default
buffer size which is the blocksize of the output file.

I'm attaching a small patch:
- documenting -B0 as back-ward compatible behavior,
- handling invalid number parameter.

Original:
$ cat -Baaa
^C
$

New:
$ ./a.out -Baaa
a.out: Invalid buffer size 'aaa': Operation Canceled
$

Regards,

Attachment: patch-cat
Description: Binary data



Home | Main Index | Thread Index | Old Index