Commit Graph

1109 Commits

Author SHA1 Message Date
Lorenzo Cogotti
75c97de593 Various fixes, add renice command.
This commit adds the renice command and its man page,
it also introduces some fixes:
* Makes nice command more solid, it also makes it respect POSIX return values.
* Fixes estrtol, which produced a misleading error on out of range errors.
* Fixes chgrp.1 NAME section.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-14 19:01:04 +02:00
Christoph Lohmann
c3b771d682 Seq has been implemented. 2013-06-14 18:56:22 +02:00
Christoph Lohmann
9df408f8c6 Adding who, chroot, env and split.
Thanks "Galos, David" <galosd83@students.rowan.edu>!
2013-06-14 18:55:25 +02:00
Christoph Lohmann
b0898c605d Adding the new C files too. 2013-06-09 15:20:55 +02:00
Christoph Lohmann
2c162042b1 Adding some utilities.
Thanks "Galos, David" <galosd83@students.rowan.edu>!
2013-05-30 21:29:56 +02:00
Christoph Lohmann
c9aac796c8 Fixing the ARG macros and adding nice.
Thanks "Galos, David" <galosd83@students.rowan.edu>!
2013-05-29 20:52:39 +02:00
Christoph Lohmann
f648c7fa71 Fixing whitespaces. 2013-05-04 07:49:51 +02:00
Lorenzo Cogotti
c451683c3f Added POSIX paste(1) command implementation.
This commit adds a simple implementation of the POSIX
standard paste(1) command, and its man page.
TODO and Makefile have been updated accordingly.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-05-04 07:48:21 +02:00
Federico G. Benavento
e509d56bae s/getopt/ARGBEGIN/ and -r bug fix cp 2013-03-10 21:59:22 -03:00
Federico G. Benavento
5c7b7e3fa8 s/getopt/ARGBEGIN/ wc 2013-03-10 21:12:10 -03:00
Federico G. Benavento
ae3423e366 pathconf(".", _PC_PATH_MAX) doesn't work from nfs mounted filesystems on BSD systems, use "/" instead. 2013-03-10 17:48:17 -03:00
Christoph Lohmann
f8dc6883a3 Style inquistion for util and some tools. 2013-03-05 21:46:48 +01:00
Christoph Lohmann
52d39e35c2 The style inquisition on basename. 2013-03-05 21:35:55 +01:00
Connor Lane Smith
284e9f723d seq: remove unused fflag 2012-06-09 18:53:39 +01:00
Connor Lane Smith
ec6924a56e seq: set ff=unix (?!) 2012-06-09 18:53:05 +01:00
Connor Lane Smith
c68bba6867 grep: fix ARGC() 2012-06-09 18:49:02 +01:00
Connor Lane Smith
c2c5ea9c60 grep: ARGBEGIN 2012-05-31 19:38:25 +01:00
Connor Lane Smith
171ef71c74 cat: ARGBEGIN 2012-05-31 19:38:18 +01:00
Connor Lane Smith
79e2f3ec19 rm: update manpage 2012-05-25 21:56:00 +01:00
Connor Lane Smith
196e81c5fb rm: removing empty dirs is okay 2012-05-25 21:55:31 +01:00
Connor Lane Smith
20d526391d chmod, chown: remove redundant flag 2012-05-25 21:52:01 +01:00
Connor Lane Smith
95ea9d4a00 fold: clarify utf8 behaviour in manpage 2012-05-25 21:51:24 +01:00
Robert Ransom
9ea0be3f07 Add missing file (util/getlines.c) 2012-05-22 11:05:07 +00:00
Robert Ransom
e6238dda31 grep: Remove trailing newline before trying to match RE
This unbreaks the "$" operator
and some uses of grep with other REs
(e.g. 'grep . TODO' to remove empty lines).
2012-05-22 00:05:03 +00:00
Robert Ransom
8ed28e50e4 uniq: WTFM 2012-05-21 23:46:22 +00:00
Robert Ransom
a16f603b20 uniq: Lobotomize for POSIX-subset compatibility
POSIX uniq(1) is required to write to its second argument,
if one is given.
The multiple-input feature I accidentally added might be useful,
but users and scripts who rely on it would be put at risk for data loss
if they ever run into a POSIX uniq(1).
2012-05-21 23:33:36 +00:00
Robert Ransom
85efaad43b uniq: Initial commit 2012-05-21 23:24:28 +00:00
Robert Ransom
85b84675f1 I'm probably a sbase copyright holder now 2012-05-21 22:17:54 +00:00
Robert Ransom
05f24a6764 mc: WTFM 2012-05-21 22:16:46 +00:00
Robert Ransom
19e8c45158 mc: Initial commit 2012-05-21 22:05:09 +00:00
Robert Ransom
a6308d52be Makefile: Correct list of .o files depending on text.h 2012-05-21 21:12:11 +00:00
Robert Ransom
07b702d9a1 sort: Librarify getlines() 2012-05-21 21:09:38 +00:00
Robert Ransom
6a86755fee sort: Expand linebuf.lines by more than one pointer-size at a time 2012-05-21 20:27:03 +00:00
Robert Ransom
e9d6735a9d sort: Move lines and nlines globals into a struct 2012-05-21 20:09:44 +00:00
Robert Ransom
7565af0e31 sort: Return 2 on usage error 2012-05-20 14:38:52 +00:00
Robert Ransom
c0f60a6f3d nl: Return 2 on usage error 2012-05-20 12:57:58 +00:00
Robert Ransom
572dcc2b83 util/estrtol: Also check for out-of-range values using errno 2012-05-20 12:51:18 +00:00
Robert Ransom
c77ea0210b Make Makefile possibly POSIX-conformant
FreeBSD make still refuses to handle the ".o:" 'single-suffix inference rule'.
2012-05-16 12:14:02 +00:00
Connor Lane Smith
7c121e189e test: eprintf in usage 2012-05-15 13:34:32 +01:00
Connor Lane Smith
fcb8821246 revert to per-cmd usage() 2012-05-15 13:32:56 +01:00
Connor Lane Smith
f3188246d8 cksum: ARGBEGIN, no buffering 2012-05-14 21:30:02 +01:00
Connor Lane Smith
146cca114e new ARGBEGIN & usage() function 2012-05-14 21:28:41 +01:00
Connor Lane Smith
f1259218f2 test: more efficient -e flag 2012-05-14 13:33:07 +01:00
Connor Lane Smith
1360f568bb grep: better regerror message 2012-05-12 18:01:27 +01:00
Connor Lane Smith
cd73d1b330 grep: check regcomp succeeds 2012-05-12 17:54:36 +01:00
Connor Lane Smith
6e0f5c1409 seq: some cleanup 2012-05-10 19:20:16 +01:00
Robert Ransom
c018f86fc7 Add -u option to date (POSIX and Plan 9, and useful) 2012-04-23 08:32:24 -07:00
Christoph Lohmann
3863ccdf98 Testing before rage. Suffix is fixed in basename. 2012-04-23 16:34:34 +02:00
Christoph Lohmann
3817f78f87 Moving back to the stone age. 2012-04-23 16:32:41 +02:00
Christoph Lohmann
120d817920 Adding the yes(1) command. 2012-04-23 16:27:40 +02:00