Commit Graph

697 Commits

Author SHA1 Message Date
sin
e23d20e1d4 Fix .SH to .Sh in kill.1 2014-11-23 13:22:55 +00:00
sin
6aab51a858 Update kill.1 2014-11-23 13:22:09 +00:00
sin
e514886f0d Update pwd.1 2014-11-23 12:56:19 +00:00
sin
5c9dc1b799 Add note about standards for strings.1 2014-11-23 12:46:24 +00:00
sin
aabcb69991 Respect exit status in strings(1) and update manpage 2014-11-23 12:44:38 +00:00
sin
d0604cc474 Don't stop at first failure in mkfifo(1) 2014-11-22 11:18:21 +00:00
sin
bf8e37625a Fix potential exit status wraparound in chgrp(1) 2014-11-22 11:14:56 +00:00
Hiltjo Posthuma
5c821d43ef grep: reset inverse flag if both are set 2014-11-21 23:07:50 +00:00
sin
e6df377504 Respect exit status in expand(1) 2014-11-21 17:53:33 +00:00
sin
cd35347203 Convert unexpand(1) to libutf 2014-11-21 17:52:22 +00:00
sin
18850f5dfa writerune() should operate on a FILE * 2014-11-21 16:34:57 +00:00
sin
5b5bb82ec0 Factor out readrune and writerune 2014-11-21 16:31:16 +00:00
sin
3de6a7510d Convert expand.c to libutf
We should librarify these chunks for now into a readrune
function.
2014-11-21 15:50:08 +00:00
sin
9a967e13f9 Fix grammar in grep.1 2014-11-21 14:22:33 +00:00
sin
9e74df6520 Add -h to grep(1) usage line 2014-11-21 13:15:36 +00:00
sin
78a55f6daf Another update to cmp.1 2014-11-21 13:12:36 +00:00
sin
cf705e6a24 Minor update to cmp(1) manpage 2014-11-21 13:12:16 +00:00
sin
8d26936b83 Update grep(1) manpage and usage line 2014-11-21 13:12:04 +00:00
sin
64e7504314 Update TODO 2014-11-21 12:54:20 +00:00
sin
102f579d0f cmp(1) is POSIX compliant so mention it in the manpage
Update format specifiers for -l as specified by POSIX.
2014-11-21 12:32:07 +00:00
sin
bb88aa471b Update basename manpage 2014-11-21 12:15:45 +00:00
sin
2d685482af Update cmp(1) manpage to new style and do not allow both -l and -s to be set 2014-11-21 12:04:07 +00:00
sin
2b39f20675 Respect exit status in grep(1) 2014-11-21 11:44:09 +00:00
sin
228e8c4a0b Update note on building sbase on OpenBSD 2014-11-21 10:36:59 +00:00
sin
875f433666 Argh - include strings.h 2014-11-21 00:03:30 +00:00
sin
ce86a05f36 Import strcasestr() from musl and remove -D_GNU_SOURCE 2014-11-20 23:46:06 +00:00
sin
ea4f58ff02 Include strings.h for strcasecmp 2014-11-20 23:38:02 +00:00
sin
d221e5ea5b Print header in tail(1) 2014-11-20 23:09:42 +00:00
sin
159cc298c4 Add an easier to edit "table" of tools in README
We need to go through the tools and update this table to reflect
current state.
2014-11-20 23:06:39 +00:00
sin
821a980ab4 Respect exit status in tail(1)
There are more instances of this problem.
2014-11-20 22:52:13 +00:00
sin
93c8aaf925 Print header in head(1) 2014-11-20 22:52:05 +00:00
sin
2a84dd5076 Respect exit status in head(1) 2014-11-20 22:39:56 +00:00
sin
8767e4b320 Properly handle multiline patterns in grep(1)
We should be POSIX compliant now.
2014-11-20 19:56:44 +00:00
sin
b6a41b688b If we have a match any pattern also match against blank lines 2014-11-20 18:20:10 +00:00
sin
f4d8ff9598 Properly handle -F and -i 2014-11-20 17:40:47 +00:00
sin
64aac9b504 Just use int for mode 2014-11-20 17:26:57 +00:00
sin
fe48fbc4e1 Break out on first match 2014-11-20 17:03:09 +00:00
sin
a1844fae70 Implement grep -f 2014-11-20 16:58:32 +00:00
sin
5ba4f37ec3 Handle null BRE/ERE and do not add a pattern to the list if it already exists 2014-11-20 16:46:57 +00:00
sin
7627a5069c Implement grep -x 2014-11-20 14:47:47 +00:00
sin
e34ce44192 Test directly, no need for intermediate assignment 2014-11-20 14:37:59 +00:00
sin
6866bcdec8 Implement grep -F 2014-11-20 14:35:55 +00:00
sin
728f36aa77 Implement grep -s 2014-11-20 14:14:41 +00:00
sin
5197affac5 Remove col(1)
Not quite necessary to have this in sbase at the moment.  We can do
a clean implementation when required.

This implementation also has some bugs that they have been fixed
in OpenBSD -current but I am too lazy to backport (we also had local
changes to col(1)).

printf(1) as imported from OpenBSD will stay for now because I need
it for booting my system.
2014-11-20 13:57:52 +00:00
sin
0d7c2351b4 Remove csplit(1)
Get rid of it for now as it is not really widely used.  We can do
a simple implementation when time comes.

Remove the table from README because it is not easy to edit unless
you use emacs.
2014-11-20 13:52:18 +00:00
FRIGN
1436518f9d Use < 0 instead of == -1 2014-11-19 20:09:29 +00:00
sin
9b38355ae8 Break out if stat fails on the source file in cp(1)
Save one level of indentation.
2014-11-19 15:08:57 +00:00
sin
2c42905f63 Make libutf.a and libutil.a different 2014-11-19 10:51:29 +00:00
sin
4399f35448 Fix two more instances where the check for "-" is insufficient 2014-11-18 21:58:50 +00:00
Evan Gates
148e6e3b79 read stdin if arg is exactly "-" not just begins with '-' 2014-11-18 21:53:37 +00:00