80 Commits (master)

Author SHA1 Message Date
Drake 9d67adfc45 `ls`: remove debug printf.
2 years ago
Drake 177e7648c4 `ls`: fix memory leak.
2 years ago
Drake 182090801f `ls`: unbreak things heavily.
2 years ago
Drake e11c85017a `yes`: use strcat.
2 years ago
Drake 01a5d6d9c0 `yes`: fix some errors.
2 years ago
Drake eddbac9c48 `dbox`: use macro to match functions.
2 years ago
Drake 35e0d2c66e `dbox`/Makefile/funcs.h: fix remaining compiler warnings.
2 years ago
Drake 90627d1428
`src/main.c`: rename to `src/dbox.c`.
3 years ago
Drake 4dacf439da
`src/main.c`: remove debug messages.
3 years ago
Drake d395b0ae28
`src/main.c`/Makefile: inital single bin support.
3 years ago
Drake 9921ad5cff
all: change main funcs to respectively named ones
3 years ago
Drake ecb700d401
`chroot`/Makefile: add chroot
3 years ago
Drake 7a801dbe8e
`cp`/Makefile: add `cp`.
3 years ago
Drake 810dec9808 `ls`/file.h/ansi-colour.h: add colouring for executables.
3 years ago
Drake ad598c70f9 `ls`: fix memory leak from not freeing the directory.
3 years ago
Drake 5e09a79105 `ls`: massive refactor to support passing multiple paths.
3 years ago
Drake 93b1d9219d `yes`: run clang-format.
3 years ago
Drake 6476b90e9b `ls`: update help message.
3 years ago
Drake e05c4f8d22 `ls`: add proper short option handling.
3 years ago
Drake e78aa64bb1
`yes`: rework printing and use a buffer.
3 years ago
Drake 38705fa09b
`cat`: close file descriptor in `concatFileToStdoutWithOptions`.
3 years ago
Drake 0ab66c2a27 `uname`: read hostname at the beginning, instead of on-demand.
3 years ago
Drake 389dbcda7c `cat`: add `--show-line-ends`.
3 years ago
Drake 84ca84611f `rm`: add `--follow-symlinks`.
3 years ago
Drake e16bee31d5 `rm`/Makefile: add `rm`.
3 years ago
Drake 19d0be3cf0 `ls`: move width checking to before filename printing.
3 years ago
Drake e8412ff491 `ls`/file.h: run `clang-format`.
3 years ago
Drake 1567e63152 `cat`/file.h: move `concatFileToStdout` func to file.h.
3 years ago
Drake 42e3204429 `ls`/checks.h: move `startsWith*` functions to header.
3 years ago
Drake 6f27014976 `cat`: remove pointless checking after running concatFileToStdout.
3 years ago
Drake 2f14fffd5c All: add license comment.
3 years ago
Drake 75be2b920a `cat`: allow concatenating multiple files.
3 years ago
Drake 4a2bc64ca5 `ls`: update help message.
3 years ago
Drake 9b124c9cfb `cat`/Makefile: add `cat`.
3 years ago
Drake 48745708cc `ls`: add error checking when expanding `..`s.
3 years ago
Drake f42b88fad5 `ls`: add --width.
3 years ago
Drake 136b84d019 `ls`: run `clang-format`.
3 years ago
Drake 1bc13fb62c `ls`: fix segfault when being ran in a directory without any files.
3 years ago
Drake fba399a85e `ls`: remove uneeded comment.
3 years ago
Drake 11d32b9dfb All: add newline to version output.
3 years ago
Drake 1ee035fe27 All: run `clang-format` on code and makefile.
3 years ago
Drake d97207065f All: remove uneeded imports, according to include-what-you-use.
3 years ago
Drake a839c81518 `ls` and file.h: massive ls function cleanup.
3 years ago
Drake 005327533e `uname`: add typecast to fix `-Wextra` warning.
3 years ago
Drake 23bc854b51 `whoami`: revert "`whoami`: misc improvements, including...".
3 years ago
Drake 9eb02a4954 `ls`: fix output on prompts without newline at beginning.
3 years ago
Drake 4813fd8c0c `ls`: make -C directly modify maxLen instead of an intermediary boolean.
3 years ago
Drake 0a059278c7
All: switch version declaration using header to makefile.
3 years ago
Drake cecdc7bf59
`yes`: better help message, specified messages.
3 years ago
Drake 5bc4b66dd0
`ls`: add green highlighting for symlinks
3 years ago