Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The byte count reported by wc was different depending on whether the -w option is set (-w is set by default) * The the code for $opt_w was modifying the line string to calculate a word count before the code for the other options is able to inspect the line * This patch makes the code $opt_w modify its own copy of the line %stat aaa.c File: aaa.c Size: 470 Blocks: 8 IO Block: 4096 regular file Device: b302h/45826d Inode: 1034312 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/ pi) Gid: ( 1000/ pi) Access: 2024-11-18 12:56:23.329998345 +0800 Modify: 2024-11-18 12:56:23.329998345 +0800 Change: 2024-11-18 12:56:23.329998345 +0800 Birth: 2024-11-18 12:56:23.329998345 +0800 %perl wc aaa.c 30 66 454 aaa.c %perl wc -c aaa.c 470 aaa.c
- Loading branch information