Commit graph

1570 commits

Author SHA1 Message Date
Steven Allen
be117de7e7 wc: reset current_char_count after each line. 2015-01-25 02:20:08 -05:00
Keunwoo Lee
3739c82c95 mv od/ -> src/ 2015-01-24 23:16:13 -08:00
Steven Allen
903bb00189 Cleanup sync.
* Use slicing syntax.
* Don't unnecessarily use the match binding syntax.
2015-01-25 01:46:55 -05:00
Steven Allen
7647a37bf8 Cleanup cat: use slicing syntax. 2015-01-25 01:21:31 -05:00
Steven Allen
8a101b2203 Cleanup cat: use while let instead of loop then match. 2015-01-24 22:53:27 -05:00
Steven Allen
9326dbc3de Cleanup cat: open files in for loop header. 2015-01-24 22:52:40 -05:00
Steven Allen
e7f80e9826 Cleanup yes
Mostly avoid copying where not needed.
2015-01-24 22:42:16 -05:00
dokaptur
ec4182fcf1 stdbuf - install multicall 2015-01-25 00:39:30 +01:00
dokaptur
b71df2fd78 prepare_libs in Makefile 2015-01-25 00:39:30 +01:00
dokaptur
563c9ab34e preloading improvement 2015-01-25 00:39:06 +01:00
dokaptur
32259aadda basic version 1 2015-01-25 00:38:20 +01:00
Heather
6c897dc76c Merge pull request #504 from ebfe/slice
Replace deprecated slice_{to,from} with slicing syntax
2015-01-24 18:47:46 +03:00
Michael Gehring
fbdf04c072 Replace deprecated slice_{to,from} with slicing syntax 2015-01-24 10:46:28 +01:00
Michael Gehring
78408fda78 sort: fix build 2015-01-24 09:50:33 +01:00
Michael Gehring
cb1dd390bb base64, cp: fix build 2015-01-24 03:56:37 +01:00
Tom Genco
406735e6f2 uname: change trim_left() to trim()
Otherwise all options have a space at the end, causing a warning in grml zsh config, and who knows what else.
2015-01-13 15:04:21 -07:00
Haitao Li
a6750e90a7 Implement readlink
Fixes #111
2015-01-13 22:21:23 +11:00
Arcterus
41cc268df8 Make dependency info usable for test, sync, true, and false 2015-01-10 13:00:15 -08:00
Michael Gehring
58bd009a9e Remove unused imports 2015-01-10 20:44:57 +01:00
Michael Gehring
6aef8cc38c Don't link to regex_macros 2015-01-10 20:44:56 +01:00
Michael Gehring
4d6cbfa393 Disable unstable warnings for now 2015-01-10 20:44:56 +01:00
Arcterus
e142b4f23e env, expand, fmt: fix build 2015-01-10 20:40:38 +01:00
Michael Gehring
8e430d6952 nl: fix build 2015-01-10 20:40:38 +01:00
Michael Gehring
782fad4667 int/uint -> isize/usize 2015-01-10 20:40:37 +01:00
Michael Gehring
cc854698d7 relpath, tee, split, unexpand: fix build 2015-01-10 20:40:37 +01:00
Michael Gehring
8d889fc5c9 uptime, users, whoami: fix build 2015-01-10 20:40:37 +01:00
Michael Gehring
8cd7295a19 test, tr, tsort: fix build 2015-01-10 20:40:37 +01:00
Michael Gehring
fecd3433cb id, nice, nohup: fix build 2015-01-10 16:54:45 +01:00
Michael Gehring
f2d49f4bb6 Make uumain return isize everywhere 2015-01-10 14:07:39 +01:00
Michael Gehring
c223e28fac uniq, wc: fix build 2015-01-10 13:49:40 +01:00
Michael Gehring
7860ef275c sort, sum tac: fix build 2015-01-10 13:49:18 +01:00
Michael Gehring
5402e69923 mkfifo, paste, shuf: fix build 2015-01-10 13:48:42 +01:00
Michael Gehring
c62bacb9fa hashsum: fix build 2015-01-10 13:18:15 +01:00
Arcterus
a12fd89cb2 chmod, chroot, comm: fix build 2015-01-09 16:51:51 -08:00
Arcterus
4e0360c495 base64, cat: fix build for Rust alpha 2015-01-09 16:16:05 -08:00
Michael Gehring
b50a2639a9 base64, du, realpath: fix build 2015-01-10 00:13:16 +01:00
Michael Gehring
cb87309e92 cut: fix build 2015-01-09 14:09:12 +01:00
Michael Gehring
0a757b957f Partially fixed build with rust master
String::from_raw_buf removal
Deprecated closure syntax
cmp::Ord -> cmp::Ordering
Vec::from_{elem,fn} removal
rand::TaskRng -> rand::ThreadRng
PtrExt::is_not_null removal
to_c_str removal
2015-01-09 09:41:49 +01:00
Michael Gehring
9aef41b8f6 << precedence 2015-01-08 14:50:03 +01:00
Michael Gehring
f580275ef8 s/mod/self/ in imports 2015-01-08 14:50:03 +01:00
Michael Gehring
48f129ea49 std::char::UnicodeChar removal 2015-01-08 14:50:03 +01:00
Michael Gehring
b8a96da278 into_string -> to_string 2015-01-08 14:50:03 +01:00
Michael Gehring
fd69e7fa4a str::from_str removal/changes 2015-01-08 14:50:03 +01:00
Michael Gehring
7d8053561e Use new array syntax 2015-01-08 14:50:03 +01:00
Michael Gehring
074a58eafd deriving is now called derive 2015-01-08 14:50:03 +01:00
Michael Gehring
1b381f49fa Use new macro feature flags/attributes 2015-01-08 14:50:02 +01:00
Timofey Misarenkov
59710d5ff8 NULL-pointer check. 2015-01-08 00:32:30 +03:00
Michal Piekarz
61c2086310 Added verbose for split - prints created file name 2015-01-04 23:33:32 +01:00
Michal Piekarz
93c3f02600 C flag for split 2015-01-04 23:33:32 +01:00
Michal Piekarz
7945e3d51c Removed deprecated calls. 2015-01-04 23:33:32 +01:00
Michal Piekarz
dbd1d34ba3 Added SIZE multiplier suffixes. 2015-01-04 23:33:32 +01:00
Stephan Jaensch
605c107258 Fix deprecation warnings with latest rust nightly
- from_str() -> parse()
- into_string() -> to_owned()
2015-01-01 12:14:28 +01:00
Florian Hahn
aff936da99 Update for recent std::ascii changes 2014-12-30 20:11:06 +01:00
Headless
0f2e20cc49 fix char_len warnings
3c60bc02ce/src/libcollections/str.rs (L1101)
2014-12-28 14:09:50 +03:00
Santiago Lapresta
d142168365 Fix deprecation warnings on latest nightlies 2014-12-25 19:55:32 +01:00
Haitao Li
b9e0ce0b1c Fix build with rustc master
* core::slice::Items renamd to core::slice::Iter
* from_utf8 returns Result instead of Option
* Unique type per fn item. Rust Issue #19891
2014-12-24 20:55:32 +11:00
Haitao Li
75425f1fe8 Fix build with rust nightly Dec-20-2014 2014-12-22 12:27:03 +11:00
Haitao Li
8cb5d03d0c Fix a mismatched types compilation error 2014-12-22 10:54:29 +11:00
Haitao Li
872bb0010a regex::Captures::{at,name} returns Option 2014-12-22 10:54:29 +11:00
Haitao Li
5cfde0dcb9 Avoid shadowing lifetime names 2014-12-22 10:54:29 +11:00
Haitao Li
9b67c372b2 Add semicolons to item macros 2014-12-22 10:54:29 +11:00
Haitao Li
0a64dbfe8b Bump rust-crypto to v0.2.2 2014-12-22 10:54:26 +11:00
Arcterus
9ef8ea486b Implement nice (resolves #215) 2014-12-15 21:00:16 -08:00
Arcterus
b8d67ea672 Update for latest Rust 2014-12-15 15:45:31 -08:00
Michael Gehring
842cc8b14c Fix build with rust master 2014-12-11 07:51:37 +01:00
Cynede
9aec1611df Merge pull request #466 from Arcterus/master
base64: fix build (assuming rust-lang/rust#19594 is merged)
2014-12-10 08:19:20 +03:00
Arcterus
798a873b59 Fix build for latest Rust 2014-12-08 23:45:03 -08:00
Arcterus
3f90b75ffc base64: don't try to remove LF when decoding 2014-12-06 16:35:32 -08:00
Arcterus
9b638d99a7 base64: fix build (assuming rust-lang/rust#19594 is merged) 2014-12-06 10:59:56 -08:00
Arcterus
75b992feac nohup: fix build on Macs (closes #463) 2014-12-05 16:32:45 -08:00
Arcterus
1c2b7fc160 tail: rewrite tail_bytes and tail_lines as one macro 2014-12-03 11:06:53 -08:00
Arcterus
db48d109e7 Use -O instead of --opt-level 3 (closes #194) 2014-12-03 10:13:10 -08:00
Arcterus
68fd0971d0 Fix build for latest Rust 2014-12-02 21:29:53 -08:00
Alex Lyon
23a4bc2d08 Merge pull request #454 from wikol/master
tail: added size suffixes handling
2014-12-02 20:45:28 -08:00
Wiktor Kuropatwa
0611a22cc2 tail: added size suffixes handling 2014-12-01 11:55:39 +01:00
Arcterus
f628e70d4a tr: improve speed slightly 2014-11-30 20:03:44 -08:00
skv
388f6e3cf8 fix 32-bit kernel uptime error
error: mismatched types: expected `i64`, found `i32` (expected i64,
found i32)
2014-11-30 16:20:18 +03:00
Arcterus
31111ac199 Fix most deprecation warnings and remove hacky nohup code 2014-11-28 14:49:22 -08:00
dokaptur
e149be492d tail: print bytes as char instead of u8 2014-11-25 19:13:21 +01:00
Arcterus
9a281adc1e wc: boost speed to be nearly as fast as GNU 2014-11-23 21:57:33 -08:00
Arcterus
9b068aafee sort: implement --reverse 2014-11-22 13:41:57 -08:00
Arcterus
ca82145f95 seq: allow inputs to have a unary plus 2014-11-22 13:20:23 -08:00
Arcterus
d47a174954 fold: actually print out empty lines 2014-11-22 13:18:14 -08:00
Arcterus
d50d4f54b9 Fix build as well as most deprecation warnings 2014-11-22 13:00:42 -08:00
Michael Gehring
2027a7a981 fix *write*! macro args 2014-11-22 07:30:18 +01:00
Michael Gehring
ab344d8e7c remove references to the native crate 2014-11-22 07:30:18 +01:00
Michael Gehring
cb4b5bce29 Remove now invalid format specifiers 2014-11-22 07:30:18 +01:00
Michael Gehring
92093644bb chmod: fix build on freebsd 2014-11-20 20:36:50 +01:00
Michael Gehring
e874d09216 std:num::pow -> std::num::Int::pow 2014-11-19 21:58:16 +01:00
Michael Gehring
fd2b464a6d std::os changes 2014-11-19 21:58:16 +01:00
Michael Gehring
09f223fdb1 Update for new coercion rules 2014-11-19 21:58:16 +01:00
Michael Gehring
cd409c6d3f Update for namespaced enums 2014-11-19 21:58:16 +01:00
skv
737db500a3 update from string for new api 2014-11-17 17:56:00 +03:00
Michael Gehring
d675ec75af du, fmt: fix build 2014-11-16 16:12:01 +01:00
Arcterus
fc76684f08 nohup: fix for latest Rust using terrible hacks 2014-11-12 11:03:07 -08:00
Arcterus
a672f5c768 chmod: update for latest Rust 2014-11-10 20:11:48 -08:00
Michael Gehring
00af7faee8 du: fix build 2014-11-09 16:30:05 +01:00
Michael Gehring
f3fc1b72ff os::errno returns uint now 2014-11-09 16:30:01 +01:00
Michael Gehring
e7b247de0b Fix deprecation warnings 2014-11-08 07:45:33 +01:00
Michael Gehring
bb69e46def basename: fix build 2014-11-07 12:10:33 +01:00
Michael Gehring
47d4b69c8a std::num::parse_bytes has been removed 2014-11-05 12:18:43 +01:00
Michael Gehring
241c8d0f55 Update collection paths/names 2014-11-04 07:30:39 +01:00
Michael Gehring
51d84b85cb shuf: fix build
It's no longer possible to have a Box<rand::Rng> due to the new object
safety rules. Wrap in an enum as a workaround.
2014-11-03 19:59:23 +01:00
Michael Gehring
f141f8b043 comm: fix build
It's no longer possible to have a Box<Buffer> due to the new object
safety rules. Wrap in an enum as a workaround.

Fixes #437
2014-11-03 18:07:14 +01:00
Michael Gehring
71c9797bd7 Fix get_mut deprecation warnings 2014-11-02 17:10:35 +01:00
Michael Gehring
476bdcd9d2 head, tail, uutils: fix build 2014-11-02 16:56:00 +01:00
Alex Lyon
03f26845d7 Merge pull request #432 from awestroke/more_mv_test_cases
More mv tests and use cases
2014-10-31 01:30:54 -07:00
Michael Gehring
3244416b19 fail! -> panic! 2014-10-30 10:06:47 +01:00
Orvar Segerström
019abb993e More mv tests and use cases 2014-10-30 08:47:26 +01:00
Alex Lyon
3ee7627c6c Merge pull request #427 from awestroke/feature_mv
MV implementation
2014-10-26 13:27:10 -07:00
Orvar Segerström
beba02757e MV implementation
Support for all commandline options except one, see src/mv/mv.rs

Many tests, included a todo list of more tests too, see tests/mv.rs
2014-10-26 11:27:28 +01:00
Heather
e3873904a9 Merge pull request #430 from Arcterus/nproc
nproc: support --all and --ignore and respect OMP_NUM_THREADS
2014-10-26 09:22:19 +04:00
Heather
b02f9a9671 Merge pull request #428 from Arcterus/chmod
Implement most of chmod
2014-10-26 09:21:20 +04:00
Arcterus
58f158de97 nproc: support --all and --ignore and respect OMP_NUM_THREADS 2014-10-25 22:10:47 -07:00
Heather
2ad86775d8 Merge pull request #429 from Arcterus/fix-master
cut: fix deprecation warnings
2014-10-26 07:47:00 +03:00
Arcterus
894daea5c1 cut: fix deprecation warnings 2014-10-25 21:28:24 -07:00
Arcterus
7abc6c007a Implement most of chmod 2014-10-25 20:32:40 -07:00
Michael Gehring
09af3ecaa2 add nproc 2014-10-25 17:33:09 +02:00
Michael Gehring
3ecf41cffe Drop BigInt support from test 2014-10-21 14:13:44 +02:00
Michael Gehring
5051a231dc uniq: fix build 2014-10-21 13:39:36 +02:00
Michael Gehring
f771d5dbc3 tee: fix build 2014-10-21 13:36:10 +02:00
Arcterus
053bad9a25 Get rid of warnings 2014-10-19 11:54:17 -07:00
Alex Lyon
ea5d67f8dc Merge pull request #420 from skv-headless/move_util
move utility
2014-10-19 11:50:15 -07:00
skv
9f20647984 move_util 2014-10-19 22:41:11 +04:00
Michael Yin
bde6d8d643 basic byte and numeric sort
tests for numeric sort
2014-10-18 18:33:18 -04:00
Arcterus
88ad6710f5 test: fix -a and -o by using operator precedence 2014-10-17 17:08:18 -07:00
Michael Gehring
ff8275a3cc uniq: crate_id -> crate_name 2014-10-11 18:02:51 +02:00
Michael Gehring
e482abb630 static -> const 2014-10-10 18:36:35 +02:00
Michael Gehring
861baaf584 'final' is a keyword now 2014-10-10 18:36:15 +02:00
Arcterus
0e4e8f14d6 Make test pass all of the Busybox tests 2014-10-06 22:16:07 -07:00
ssirai
681022a2ca Change tab to spaces 2014-10-05 10:09:52 +09:00
Michael Gehring
7eefe7003b Update to the new cfg syntax 2014-10-02 19:55:06 +02:00
NODA, Kai
c41250f69e cat: range pattern now should use three dots. 2014-10-02 22:42:30 +08:00
Arcterus
8ede3fa0dc Pass the Busybox's Unicode test for fold 2014-09-28 22:51:24 -07:00
Arcterus
573ca2931b Fix fold for Busybox tests (other than unicode) 2014-09-28 18:12:47 -07:00
Arcterus
ba0177c824 Allow test to be checked by the Busybox test suite 2014-09-27 20:17:34 -07:00
Arcterus
afabebe432 Fix wc output for bytes 2014-09-27 15:24:10 -07:00
Michael Gehring
5af66af015 Fix deprecation warnings 2014-09-27 21:05:36 +02:00
Arcterus
d17d388e2b Modify tail to pass some Busybox tests 2014-09-25 23:16:58 -07:00
Michael Gehring
d159acff2e Fix typo (and macos build?) 2014-09-25 09:45:49 +02:00
Heather
e3b8754919 update deprecated parts of sync 2014-09-24 09:28:31 +04:00
Heather
4e1aab25c3 update whoami syntax for windows 2014-09-24 08:58:54 +04:00
Michael Gehring
4618aa99bc id: add missing repr(C) 2014-09-24 00:42:25 +02:00
Michael Gehring
1dc57eb329 Fix deprecation warnings 2014-09-24 00:41:15 +02:00
Michael Gehring
029293ad0e fmt: fix build 2014-09-23 19:56:06 +02:00
Michael Gehring
78c6d0b383 FreeBSD support 2014-09-23 15:40:31 +02:00
Heather
421ad316b5 Merge pull request #393 from ebfe/rfc-52
Update for rust RFC 52 changes
2014-09-18 02:23:35 +04:00
Michael Gehring
2ef74e2783 Update for rust RFC 52 changes 2014-09-17 17:16:21 +02:00
Arcterus
01c2a0b9ff Remove all warnings (at least on Linux) 2014-09-16 20:08:40 -07:00
Arcterus
01c681ecb3 Update for latest Rust 2014-09-16 19:10:27 -07:00
Michael Gehring
6b9831a091 Update for rust master 2014-09-16 16:59:00 +02:00
Michael Gehring
f9e99c0c26 Fix non_snake_case warnings 2014-09-02 09:49:39 +02:00
Michael Gehring
1c8e9161cc Add explicit lifetimes 2014-08-31 20:01:41 +02:00
Michael Gehring
cdacaaa648 time::Duration::{milli}seconds now takes i64 arg 2014-08-31 19:45:03 +02:00
Heather
056175c0af Merge pull request #384 from ebfe/repr_c
Add repr(C) to c structs
2014-08-22 14:48:18 +04:00
Michael Gehring
1134e8b9c9 Update for new import syntax 2014-08-22 12:22:31 +02:00
Michael Gehring
83974be06f Add repr(C) to c structs 2014-08-22 12:21:30 +02:00
Xander Masotto
4414d95b6b Fix sync and whoami on windows. 2014-08-18 07:29:48 +01:00
Michael Gehring
81264a5d6a Fix build with rust master 2014-08-17 10:27:22 +02:00
Ivan Ukhov
dd1f0df69f Replace deprecated from_c_str with from_buf in id 2014-08-09 06:55:12 +02:00
Heather
b65719638d Merge pull request #377 from Arcterus/fix-pipe_writeln
common/util: make pipe_writeln! use writeln! instead of write!
2014-08-05 08:18:52 +04:00
Arcterus
7e00000098 common/util: make pipe_writeln! use writeln! instead of write! 2014-08-04 20:17:10 -07:00
polyphemus
2a238e3c0f Get rid of unsafe indexing
Unsafe indexing is replaced by ImmutableEqVector::position_elem() and a
few branches have been eliminated.

The performance is about the same as for unsafe indexing.
2014-07-31 22:43:31 +02:00
Michael Gehring
ac77c6da17 Fix deprecation warnings 2014-07-29 08:52:58 +02:00
Virgile Andreani
49a733a864 Implement unexpand 2014-07-28 19:36:33 +02:00
Virgile Andreani
69cb8da6ed Implement expand 2014-07-26 12:57:26 +02:00
Arcterus
e80af55700 Fix more bugs to pass Busybox tests 2014-07-24 22:20:03 -07:00
Arcterus
a38ee8a007 Implement timeout (resolves #364) 2014-07-21 18:55:52 -07:00
Arcterus
439a8cadd1 Move tests out of src and into test 2014-07-21 14:44:30 -07:00
Arcterus
b7f4bd01bc Move all of the utils into src 2014-07-20 20:20:55 -07:00