Evan Gates
91bb8ed7d6
remove extra get_n_arg declarations (copy pasta)
2015-02-24 10:23:17 +00:00
FRIGN
1def981831
Add mkrunetype.awk
...
and add a Makefile in libutf/ to allow auto-generation
2015-02-23 20:36:47 +01:00
noname
274f9eaf42
Replace strlen with unary_n to test zero length.
2015-02-22 19:40:28 +00:00
Quentin Rameau
7264acf7ed
ls: add -n option
2015-02-22 12:30:47 +00:00
sin
9e37634571
ls: Clarify that -1 is set implicitly when -R is used
2015-02-21 11:47:37 +00:00
Tai Chi Minh Ralph Eastwood
0eaff8b7fe
Update README for ls -R
2015-02-21 11:46:04 +00:00
Tai Chi Minh Ralph Eastwood
dacd523ec1
ls: add support for -R flag
2015-02-21 11:46:04 +00:00
sin
9c30fbf018
Add ls -A implementation
...
Thanks joshua@cubesolving.com !
2015-02-21 09:31:01 +00:00
Evan Gates
6abce61877
insert implicit -a after primary before !
2015-02-21 09:25:05 +00:00
Evan Gates
639a74a537
find: Change execv to execvp
...
- Make globals static
- Fix a comment
- Change some data types
- Rearrange struct members from largest to smallest
(no affect due to small structs, good practice)
2015-02-21 09:24:31 +00:00
Evan Gates
9048b542c7
align redirections in Makefile for readability
2015-02-21 09:22:27 +00:00
Evan Gates
b7c2bbc6db
replace printf + putchar with fputs
2015-02-21 09:22:25 +00:00
Evan Gates
a2e704c8c9
use parameter expansion instead of basename in Makefile
2015-02-21 09:22:21 +00:00
Evan Gates
654997c320
add [ alias for test
2015-02-21 09:22:16 +00:00
Evan Gates
3751dd546f
no need for libutf in test, a null byte is a null byte
2015-02-20 19:29:28 +00:00
sin
84924d050e
Add info about NetBSD to config.mk
2015-02-20 16:24:17 +00:00
sin
71de7813c0
Include strings.h for strcasecmp()
...
Fixes another build error on NetBSD.
2015-02-20 16:00:58 +00:00
sin
b08bb6aad6
Use st_mtime as opposed to st_mtim.tv_sec
...
This is more portable and fixes a build issue on NetBSD. We ignore
nanoseconds in this case so there's no functional difference.
2015-02-20 15:47:50 +00:00
sin
cd51795423
Implement nl -n format
2015-02-20 14:12:48 +00:00
Roberto E. Vargas Caballero
b8fbaa9b0d
Remove bit fields
...
Before removing bit fields:
$ size find
text data bss dec hex filename
16751 968 48 17767 4567 find
After removing bit fields:
$ size find
text data bss dec hex filename
16527 968 68 17563 449b find
This is an example where bit fields uses more memory
than integers or char. There is going to be only one
gflags struct, so the waste in instructions is bigger
than the space saved by bit fields. In the case of Permarg,
Sizearg, Execarg there is only one bit field, so at least
one unsigned is used, so there is no any gain.
2015-02-20 13:46:56 +00:00
Roberto E. Vargas Caballero
19fb7f115d
Add -lrt switch
...
find(1) uses clock_gettime which in some systems needs -lrt.
2015-02-20 13:46:49 +00:00
Hiltjo Posthuma
bb79b5c7eb
uudecode: fix no newline before EOF
2015-02-20 14:36:50 +01:00
Hiltjo Posthuma
ddeb4c0e35
uudecode: add newline to out-of-range error
2015-02-20 14:36:50 +01:00
FRIGN
b47dab2d4d
Don't be too pedantic in expr.c
2015-02-20 13:45:57 +01:00
Hiltjo Posthuma
31f0624f3d
code-style: minor cleanup and nitpicking
2015-02-20 13:29:38 +01:00
Hiltjo Posthuma
6c7ff5fda5
code-style: unindent one level of switch
2015-02-20 13:29:38 +01:00
Hiltjo Posthuma
5a6715c0cf
unexpand: spaces to tabs
2015-02-20 13:29:38 +01:00
sin
36dc38acf6
Add missing limits.h include for nl(1)
...
Required for the *_MAX constants.
2015-02-20 12:21:46 +00:00
sin
9de3546082
Implement nl -w width
2015-02-20 12:15:43 +00:00
sin
13e4231f4c
Implement nl -v startnum
2015-02-20 12:05:54 +00:00
sin
028b0c206f
Fix style
...
This broke sbase-box because it assumes that main(...) starts on
a separate line.
2015-02-20 10:24:11 +00:00
Evan Gates
76e6aacd60
Add initial find(1) implementation
...
No manpage yet.
2015-02-20 10:17:16 +00:00
Quentin Rameau
51b707e91e
ls: add support for -p
2015-02-19 18:52:13 +00:00
FRIGN
d02327d0eb
Get rid of the %Z-flag in strptime-format
...
We don't actually need it for Zulu-time and handroll it.
We can add the gmt-offset to hour without range-checking, because
the implementation will take care of it in mktime().
2015-02-19 19:27:17 +01:00
FRIGN
0f4192e6b2
Update usage and add actual d-parsing to touch(1)
2015-02-19 18:58:19 +01:00
FRIGN
14b1db88bf
Correct error-handling in touch(1)
2015-02-19 18:56:59 +01:00
FRIGN
b00a00703f
Add proper d- and t-flag support to touch(1)
...
except the [,frac], [.frac] respectively, but that's ok.
2015-02-19 18:54:56 +01:00
sin
c2b400bbd8
Fix touch usage in manpage
2015-02-19 15:35:22 +00:00
sin
c3d9bb8796
touch: Document that -d is unsupported
2015-02-19 15:31:28 +00:00
sin
737e805505
touch -t is also unwanted
2015-02-19 15:28:05 +00:00
sin
32791d3ca7
Mark touch -d as unwanted in the README
2015-02-19 15:27:03 +00:00
Quentin Rameau
7ddaf1d6fe
uniq: corrected arg syntax in usage()
2015-02-19 14:57:09 +00:00
sin
0e008fe349
mv: Remove -i from usage and manpage
2015-02-19 14:56:02 +00:00
sin
8d53fc9a79
rm: Remove -i from usage and manpage
...
We do not support it so do not lie to the user.
2015-02-19 14:54:12 +00:00
Quentin Rameau
bf5f6a08a4
README: added options for date, ls, touch
2015-02-19 14:45:13 +00:00
sin
9355d88aae
Add COLUMNS support to cols(1)
...
First attempt to see if COLUMNS is set, if that fails an ioctl()
is issued to find the width of the output device. If that fails
as well, we default to 65 chars per line.
2015-02-19 11:25:51 +00:00
FRIGN
8c041cd115
Don't terminate du(1) if chdir(2) fails
2015-02-18 22:04:32 +01:00
sin
2137dfa334
Mark du(1) as finished in README
2015-02-18 20:43:46 +00:00
sin
d9085e9078
Update manpage for du(1)
2015-02-18 20:42:23 +00:00
sin
14b95b5f53
Mark du -x as done in the README
2015-02-18 20:41:37 +00:00