Commit graph

1953 commits

Author SHA1 Message Date
Oly Mi
0b89885199 Merge pull request #289 from Arcterus/gitmodules-update
Assorted fixes and improvements
2014-06-21 10:35:09 +04:00
Arcterus
1296aa3d0d seq: handle -- 2014-06-20 16:46:59 -07:00
Arcterus
f96a4311a2 seq: now passes about half of the Busybox tests 2014-06-20 16:32:43 -07:00
Arcterus
32d843f500 Merge pull request #290 from kwantam/master
fmt: correct tab support, better formatting
2014-06-20 16:27:27 -07:00
kwantam
c9ee0a3e4d fmt: correct tab support, better formatting
In brief:

- Lines no longer end with trailing whitespace.
- fixed length calculation when tabs are present
- word splitting gives more info to the line
  breaking process, which should be useful for K-P
- code cleanup here and there
- K-P is not implemented yet. That's next. There
  is some dead code in linebreak.rs that forms the
  basis for K-P.
- Performance has regressed somewhat; we're now about
  60% slower than GNU fmt (formerly about 20%), but we
  are basically on par with OpenBSD fmt.
- addressed comments from Arcterus on PR

This is a squash of the following local commits:

 1feceb0 - address comments from Arcterus on PR
 b36aa90 - use word_nchars rather than w.len() for first word
 f44a629 - proper tab handling
 4f57593 - added tab analysis info to WordInfo
 211f4a5 - pass WordInfo by ref
 80e14b9 - overhaul word splitting apparatus
 d29f2e6 - tidy up the breaking by passing arg struct pointer
 d8020df - lines blank save for prefix act as par separators
 8bd7f1e - fixed tab behavior in -u
 a2387f7 - cleaner prefix handling ; cleanup ; prep for K-P
2014-06-20 18:59:45 -04:00
Arcterus
fc7f291a68 echo: check argument length when parsing options 2014-06-20 15:12:08 -07:00
Arcterus
b3f83378b7 Prevent rebuilding of up-to-date utilities 2014-06-20 14:50:32 -07:00
Arcterus
5b8e359a5f Change md5sum/rust-crypto to deps/rust-crypto 2014-06-20 14:37:14 -07:00
Arcterus
eb5f199c8f Fix build dependencies in the Makefile 2014-06-20 14:31:55 -07:00
Arcterus
3d139aecc2 Merge pull request #286 from ebfe/uutils
uutils: add md5sum
2014-06-20 12:27:24 -07:00
Oly Mi
0b3c6552ef Merge pull request #287 from ebfe/remove-bytes
Remove use of bytes!()
2014-06-20 18:32:20 +04:00
Michael Gehring
3c2831835e Remove use of bytes!() 2014-06-20 15:15:51 +02:00
Alexander Fomin
9c6d85a4ae Crate name fixed 2014-06-20 17:01:00 +04:00
Michael Gehring
63825f96d5 uutils: add md5sum 2014-06-20 14:49:49 +02:00
Michael Gehring
62e639cfa6 md5sum: remove Makefile 2014-06-20 14:49:49 +02:00
Michael Gehring
30ee539ec0 move rust-crypto to deps/ 2014-06-20 14:49:49 +02:00
Alexander Fomin
8011121f2a sync for Windows implementation 2014-06-20 16:44:35 +04:00
Oly Mi
5c501cc815 Merge pull request #280 from Arcterus/echo-fix
Make echo pass the Busybox test suite
2014-06-20 06:36:38 +04:00
Arcterus
af01114ba8 echo: pass Busybox test suite 2014-06-19 17:38:26 -07:00
Arcterus
df6f1ba19c echo: fix handling of \0 2014-06-19 16:26:49 -07:00
Arcterus
77e9d7bbae Merge pull request #283 from ebfe/uutils
uutils: fix build
2014-06-19 16:08:23 -07:00
Michael Gehring
f6a6305690 fmt: make uumain public 2014-06-20 01:03:43 +02:00
Michael Gehring
4738d4efcd sync: rename crate to uusync due to name clash with rusts libsync 2014-06-20 01:03:43 +02:00
Arcterus
06f2c5aba3 Merge pull request #281 from ebfe/uutils
uutils: add fmt, sync
2014-06-19 15:49:27 -07:00
Michael Gehring
b7357c527f uutils: add fmt, sync 2014-06-20 00:46:10 +02:00
Arcterus
76cf0e47ed echo: handle -- correctly 2014-06-19 13:49:09 -07:00
Oly Mi
ca06ef6155 Merge pull request #278 from Arcterus/du-error-msgs
du: make error output more consistent with other utils
2014-06-19 21:34:22 +04:00
Oly Mi
eb936de334 Merge pull request #279 from Arcterus/busybox-fix
Make the busybox test suite actually run with relative path names
2014-06-19 21:34:11 +04:00
Arcterus
dc958c43d7 Make the busybox test suite actually run 2014-06-19 09:31:47 -07:00
Arcterus
dba87f0131 du: make error output more consistent with other utils 2014-06-19 09:17:59 -07:00
Arcterus
e8c12735e8 Merge pull request #277 from ebfe/du
du: exit with status 1 on invalid arguments
2014-06-19 08:40:35 -07:00
Michael Gehring
52c8e8daba du: exit with status 1 on invalid arguments 2014-06-19 15:16:27 +02:00
Michael Gehring
69b5429e6a du: tweak output format 2014-06-19 14:57:32 +02:00
Oly Mi
61d2e930d0 Merge pull request #276 from Arcterus/c_types-mac-import
common: import Mac-specific things in one statement
2014-06-19 12:50:38 +04:00
Arcterus
1f6935a682 common: import Mac-specific things in one statement 2014-06-19 00:53:24 -07:00
Arcterus
7f2cd59883 Merge pull request #275 from ebfe/c-types-import
c_types: remove unused import
2014-06-19 00:45:05 -07:00
Michael Gehring
eb6c56eead c_types: remove unused import on linux 2014-06-19 09:39:19 +02:00
Oly Mi
b44f47d7f7 Merge pull request #268 from Arcterus/id-group-mac-fix
Fix id and groups for Macs.  Also add dependency information.
2014-06-19 11:23:44 +04:00
Oly Mi
898e6082f6 Merge pull request #274 from Arcterus/util-libc
common: make libc reference in util look for the libc in util
2014-06-19 07:54:00 +04:00
Arcterus
662b0d656f id: remove warning about unused import 2014-06-18 20:23:01 -07:00
Arcterus
afe56a95e9 common: make libc reference in util look for the libc in util 2014-06-18 20:19:50 -07:00
Arcterus
99b0a11fe0 Merge pull request #272 from kwantam/master
implementation of fmt
2014-06-18 20:16:14 -07:00
kwantam
5d2a2b6a0b fmt: style modifications suggested by Arcterus 2014-06-18 23:09:22 -04:00
kwantam
6228bb4b85 remove fmt from README.md, add to Makefile 2014-06-18 20:56:53 -04:00
kwantam
ac216c3d77 initial release of working fmt
Note: for now, this version does not use Knuth-Plass,
but everything else is in place with "greedy" breaking.

All options (should) work, and performance is nearly
on par with GNU fmt.

Squashed commit of the following local commits:

commit ebc12f5e7d19d351ada9273ec0c42d66d3730431
commit 125fdabcb2a32de161c7a8b76c3e766a40ff9f76
commit dadd62acc093b5bd4bc94ad4f8a499d2663a7097
commit e436fdaade3876e92020c61a736eba54eb5ca0cf
commit bbc4f4f6ad749753efe9b2df871ddb257f33de4b
commit 12bc4ecb0c56c0d43515a111e9129a4bfaf36531
commit 2e693553ed9af59c53ee13026d19c9f82f2973fc
commit 9b15a130148d62dd6a1d2765848ddc4daf30c649
commit ea335eb2869afcc94709345118fab3fb2e612954
Merge: ee92573 23cc41d
commit 23cc41d188cb3134c04872fd77acb331d86a64ea
commit 2fa7c48133001d86da39feda04d870ff67e88400
commit eb71558ee46654b568adf167f194cb854bbf7056
commit c8baabc0b86d831b5741fa496c312134db652c55
commit ee4fab44b216c1d9c7dcdcdc29ca587c76284834
commit c5444416a531ae1341dddbfd528e4a3ee5f106bf
commit e1177d47941654b8834d18599c80065943a26159
commit c7fb30e2ff32313974f99d34ba4735be064b0cc5
commit 99a9406bc6fff33fc64c190356e48f443312a6c4
commit 3d244d62c9b60b579f2e5b723da6389a5dbc8805
commit 2d4f09cb2ff83664730edba209ec129abdcf1403
commit 947c32b72bff8d50e362555ec21a6b848d5fec9f
commit 8556d2a3467651ee7833ad800876af35a7dd5db7
commit a2e4bc3dc45e5f39b402e6fdd3e19edcea6d3c34
Merge: 0308884 439e65d
commit 03088844f1fd2faca6c3471230730136dd140f35
commit ac80d888649dd1311fdaa68400ea45d52b2e23ab
commit c1d6b36acb7038e14d5b3e1fb6a44614a3351f96
commit 6539b102593aa9d9570df8be99ca1a1bf01ea1f4
commit 439e65d3331936e00fa89a4b2f88c343b9e28c5b
commit fac27de7c4918bc5cf1a1ac1a43550236ba8af4d
commit 365989c5bbe5c2289648f6efbc3c9388388e30a0
commit 3dd71364cce9aaaa773fc88eb206aba31aa61390
2014-06-18 20:43:26 -04:00
Arcterus
3dc2064477 Begin using dependency info in the Makefile 2014-06-18 17:31:00 -07:00
Arcterus
7866f967ef common: fix for Linux 2014-06-18 17:24:56 -07:00
Arcterus
ce3b45b503 common: make get_group_list work for all users on Macs 2014-06-18 17:21:17 -07:00
Oly Mi
6039626490 Merge pull request #270 from orodley/fix-32-bit-build
Fix build failure for systems with a non-64-bit time_t.
2014-06-18 19:29:05 +04:00
Owen Rodley
dfd6e1e5ed Fix build failure for systems with a non-64-bit time_t. 2014-06-19 00:42:34 +12:00