| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
|
|
|
| |
Here's how it's supposed to look like:
fases cat (d84hd34s): Concatenate files to stdout
Usage: cat [file...]
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
| |
Reported-by: Leah Rowe <leah@libreboot.org>
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
|
| |
It's poorly implemented and ugly, it segfaults and doesn't compile with
-Werr. The time is now!
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
|
| |
Both core/Makefile and extras/Makefile were almost identical. This
commit unifies the identical parts in one file.
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
| |
It's useless
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Those bugs were basically introduced by typos...
First bug
---------
`head` was checking if argc was less than 2, which is incorrect because
after getopt() is ran, argc would be equal to 1 if ran this way:
$ head file
As such, it would read standard input, then the file, which is a bug.
Second bug
----------
The file got closed after the first line was read. When trying to read
the (now closed) file it returns a segmentation fault.
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
POSIX says this:
> Applications using the exec() family of functions to execute
> these utilities shall ensure that the argument passed in arg0
> or argv[0] is '[' when executing the [ utility and has a
> basename of "test" when executing the test utility.
Which basically means (in pseudo-code if you will):
if argv[0] is "[" -> behave like the POSIX [
else -> behave like the POSIX test
[ used to compare with the basename of argv[0], which is
POSIXly incorrect.
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
|
| |
That fixes a bug where [/test always returns 1 when used with
`-L` or `-h`.
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
|
|
| |
wc used to always return 'total %d %d %d %s\n' (in
pseudo-printf here) regardless of if one or multiple
files were specified.
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
`cat` used to not concatenate at all when ran like this:
$ cat
It did read standard input, but did not output anything to
standard output. fdopen() was used on STDIN_FILENO when it
shouldn't.
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
| |
-R option.
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
| |
print_usage() )
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|