Nico Weber
7480034942
seq: Check start, step, end for NaN
2020-11-08 21:40:18 +01:00
Matthew L. Curry
a45ba638a7
seq: Add help option
...
Added a help option to the seq command that gives usage information. Further,
when a user gives an incorrect argument, usage is supplied on stderr.
2020-10-15 13:48:42 +02:00
Ben Wiederhake
4f77ccbda8
LibC+Userland: Prefer snprintf over sprintf
...
I ignored the sprintf in Userland/cal.cpp because it's too much trouble.
However, this only underlines the need for bounds checking.
2020-08-22 20:55:10 +02:00
Ben Wiederhake
0248ddc427
Userland: Mark compilation-unit-only functions as static
...
This enables a nice warning in case a function becomes dead code.
2020-08-12 20:40:59 +02:00
Nico Weber
c2565ef55e
Userland: Add a "seq" utility
...
It's useful with the newly added for loops in Shell.
SerenityOS's printf() doesn't seem to print decimals for
doubles correctly, so this doesn't print the right output for
fractional numbers yet.
2020-07-16 17:52:18 +02:00