Commit graph

2120 commits

Author SHA1 Message Date
Brian Anderson
04fb170c2c Restore error recovery behavior in rm, rmdir, etc.
These tools continue on error. This patch uses `Result` and the
`and` method to collect `Err` values.
2014-06-11 21:48:38 -07:00
Brian Anderson
4731928558 Fix typo 2014-06-11 21:48:38 -07:00
Brian Anderson
18acfc0103 Make busytest stop complaining about missing config file 2014-06-11 21:48:38 -07:00
Brian Anderson
8fbfe24176 Make show_error! not set the exit code. #211 2014-06-11 21:48:38 -07:00
Brian Anderson
962a6bbf2f Get test suite passing again by tweaking error handling in mkdir
Replace `show_error!` with Result<(), int> and `display_error!`
2014-06-11 21:48:38 -07:00
Brian Anderson
0ee4fb0576 Handle exit status more consistently. #211
This changes the `uumain` functions to return the exit code as `int`.

It does not eliminate all calls to `os::set_exit_status` and `libc::exit`.
2014-06-11 21:48:38 -07:00
Brian Anderson
ce19eb4329 Update to Rust nightly 2014-06-11 21:48:36 -07:00
Arcterus
8f56befded Merge pull request #213 from Heather/master
rust-crypto submodule update due critical fix
2014-06-09 20:39:54 -07:00
Heather
f8cc46d982 update submodule: rust-crypto 2014-06-09 14:21:04 +04:00
Heather
bcc04ae4fe move hostname to unix_progs 2014-06-09 14:21:03 +04:00
Heather
60bed9e103 Merge pull request #214 from ebfe/fix-build-master
wc: fix build with rust master
2014-06-09 12:52:38 +04:00
Michael Gehring
c5c6362782 wc: fix build with rust master 2014-06-09 10:31:42 +02:00
Arcterus
8b64287202 Merge pull request #209 from mahkoh/factor
prevent infinite loop
2014-06-05 13:47:45 -07:00
Julian Orth
7ae05b9935 prevent infinite loop 2014-06-05 22:35:32 +02:00
Arcterus
f0d121c8cc Merge pull request #201 from beatgammit/feat-factor
add factor
2014-06-05 13:17:49 -07:00
T. Jameson Little
b321a1a5c0 add factor 2014-06-05 14:14:04 -06:00
Heather
79529d456f Merge pull request #206 from ebfe/cp
cp: fix argument parsing
2014-06-03 15:49:57 +04:00
Michael Gehring
44ae45793e cp: fix argument parsing 2014-06-03 13:16:57 +02:00
Heather
74bca57c8b Merge pull request #205 from ebfe/comm
comm: handle final lines without \n
2014-06-03 14:16:27 +04:00
Michael Gehring
ecddbf22ca comm: handle final lines without \n 2014-06-03 11:59:57 +02:00
Arcterus
e932af9795 Merge pull request #204 from brson/master
RFC: Improve busybox compatibility using their test suite
2014-06-02 19:33:37 -07:00
Brian Anderson
1ebd6a7310 Improve busybox compatibility for command line processing 2014-06-02 14:07:55 -07:00
Brian Anderson
c31e36a994 Output list of uutils functions in a way that busybox's 'runtest' understands 2014-06-02 14:07:55 -07:00
Brian Anderson
91da25ff2b Add a 'busytest' target to run uutils under the busybox testsuite
It requires the BUSYBOX_SRC environment variable to be set,
and optionally passes arguments to the busybox test runner with
the RUNTEST_ARGS environment variable.

Example:

```
make busytest MULTICALL=1 BUSYBOX_SRC=~/dev/busybox RUNTEST_ARGS=tr
```
2014-06-02 14:07:55 -07:00
Brian Anderson
2bf64159e0 Update to nightly 2014-06-02 14:07:53 -07:00
Arcterus
fa76f79129 Merge pull request #202 from ebfe/remove-tilde
remove remaining uses of ~[T]
2014-05-30 01:50:39 -07:00
Michael Gehring
448f4d6d70 remove remaining uses of ~[T] 2014-05-30 10:40:36 +02:00
Heather
4107b265ba Merge pull request #199 from mahkoh/readme
remove todo
2014-05-29 12:27:17 -07:00
Julian Orth
9526b044cc remove todo 2014-05-29 21:03:03 +02:00
Arcterus
1240213acb Merge pull request #189 from mahkoh/cat
Improve cat performance
2014-05-29 10:56:16 -07:00
Julian Orth
6e518f5cf9 Improve cat performance 2014-05-29 19:48:03 +02:00
Arcterus
fce8606697 Merge pull request #195 from ebfe/multicall
Add a multicall binary
2014-05-29 00:03:12 -07:00
Michael Gehring
94c527c8f4 multicall: don't build true/false crates 2014-05-29 08:58:06 +02:00
Michael Gehring
1bac39d509 silence dead code warnings in multicall build 2014-05-29 08:58:06 +02:00
Arcterus
40d33b823f Merge pull request #197 from Heather/master
modified:   .gitignore
2014-05-28 23:11:45 -07:00
Heather
6f264ebcbf Update .gitignore 2014-05-28 23:11:09 -07:00
Heather
afa1f87d30 modified: .gitignore 2014-05-29 09:12:09 +04:00
Heather
6edb91f4a0 Merge pull request #196 from ebfe/fix-head
head: unwrap IoResult before printing
2014-05-28 05:53:33 -07:00
Michael Gehring
d7d79556a8 head: unwrap IoResult before printing 2014-05-28 14:47:46 +02:00
Michael Gehring
13f01e4c11 add uutils multicall binary 2014-05-28 14:22:52 +02:00
Arcterus
7f4a646e1f Merge pull request #193 from ebfe/fix-build-master
Fix build with rust master
2014-05-27 23:47:46 -07:00
Michael Gehring
9665fb0a26 update rust-crypto 2014-05-28 08:35:49 +02:00
Michael Gehring
9b3bfed359 to_{strbuf,owned} -> to_string 2014-05-28 08:33:39 +02:00
Heather
005876ac53 Merge pull request #192 from Arcterus/master
id: remove deprecation warning
2014-05-27 21:14:21 -07:00
Arcterus
17f1c4b8e8 id: remove deprecation warning 2014-05-27 21:11:49 -07:00
Arcterus
2065b31f8b Merge pull request #191 from beatgammit/master
add sum
2014-05-27 21:01:19 -07:00
T. Jameson Little
aa51311f83 add sum 2014-05-27 22:00:28 -06:00
Arcterus
98e7d19594 Don't bother implementing make-prime-list 2014-05-27 18:31:50 -07:00
Arcterus
dbfb7d6cd3 Merge pull request #188 from ebfe/args
Remove the unnecessary conversion of os::args() ret val
2014-05-25 10:37:49 -07:00
Michael Gehring
a70f858f12 Remove the unnecessary conversion of os::args() ret val
Missed these in 46b9d6d78e
2014-05-25 11:55:28 +02:00