On Tue, Dec 28, 2021 at 11:46 AM <[email protected]> wrote:
>
> From: Sören Tempel <[email protected]>
>
> Apart from the -p option, POSIX also mandates an -s option which
> suppresses the output of byte counts for the e, E, r, and w command.
> From these commands, Busybox ed presently only implements the r and w
> commands. This commit ensures that these two command do not output any
> bytes counts when the -s option is passed. The shell escape command,
> also effected by the -s option, is not implemented by Busybox at the
> moment.
> @@ -52,6 +52,7 @@ struct globals {
> LINE lines;
> smallint dirty;
> int marks[26];
> + int silentMode;
> };
No need for a new variable.
Please use existing option_mask32 instead:
if (!(option_mask32 & OPT_SILENT))
printf("%u\n", charCount);
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox