Commit graph

34 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
8fbfe24176 Make show_error! not set the exit code. #211 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
2bf64159e0 Update to nightly 2014-06-02 14:07:53 -07:00
Michael Gehring
448f4d6d70 remove remaining uses of ~[T] 2014-05-30 10:40:36 +02:00
Michael Gehring
1bac39d509 silence dead code warnings in multicall build 2014-05-29 08:58:06 +02:00
Michael Gehring
13f01e4c11 add uutils multicall binary 2014-05-28 14:22:52 +02:00
Michael Gehring
9b3bfed359 to_{strbuf,owned} -> to_string 2014-05-28 08:33:39 +02: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
Michael Gehring
1bf7569084 StrBuf was renamed to String 2014-05-25 11:20:52 +02:00
Michael Gehring
0ce3f0f4e1 Adapt to removal of ~str from libstd. 2014-05-23 14:28:40 +02:00
Michael Gehring
577e4baef9 Update for getopts changes 2014-05-17 12:32:14 +02:00
Michael Gehring
4b9c8279ce os::args returns Vec<~str> now 2014-05-16 11:17:23 +02:00
Arcterus
366c388d3f Update for latest Rust 2014-05-06 23:25:49 -07:00
petejodo
27ed81322c Fixed most issues caused by libc being moved from std to it's own crate.
I just did a quick pass and fixed a majority of the simple issues but
there are still some problems with the following utils:
  id
  md5sum
  tee
  uptime
  users
  whoami
2014-04-07 18:43:34 -04:00
Arcterus
e898d37736 Update for latest Rust 2014-03-31 09:40:21 -07:00
Alan Andrade
10d7a0cc9c Fix master by using Vec and adjusting 2014-03-22 02:17:27 -07:00
José Neder
786b39019b Fix master by removing extra crate,
and using max method for comparing floats
2014-03-18 09:26:42 -03:00
Alan Andrade
1dc2cd3a0f Fix master by comparing against slices, not ~ 2014-03-13 16:12:28 -07:00
Alan Andrade
de21ff4c2f Move util.rs to common 2014-02-23 22:50:34 -08:00
Arcterus
47ddd7d4f2 Update for latest Rust and fixed up id for Linux 2014-02-16 13:29:31 -08:00
Arcterus
74df4d5a98 Fix programs for latest Rust and begin usage of new utility macros 2014-02-06 22:39:07 -08:00
Arcterus
384d710790 Update most utilities for latest Rust 2014-02-04 19:39:17 -08:00
Arcterus
3012acf2d1 rm: make InteractiveMode derive Eq 2014-02-01 12:38:46 -08:00
Heather
6ffd1ad4d6 buffread::BufferedReader -> BufferedReader 2014-01-21 10:50:38 +04:00
Heather
ee56d7b196 update code for Rust print syntax changes 2014-01-13 13:05:02 +04:00
Jordi Boggiano
d321274556 Update rm command to fix the build 2014-01-07 02:25:28 +01:00
Arcterus
fe1edd9f67 Added the aliases -h and -V for --help and --version to rm 2013-12-18 17:14:04 -08:00
Arcterus
204260b739 Documentation changes for rm, resolves #36 2013-12-18 16:32:26 -08:00
Arcterus
af2437b725 Implemented --interactive for rm 2013-12-18 16:11:48 -08:00
Arcterus
2161625934 Add --verbose support to rm 2013-12-17 22:37:50 -08:00
Arcterus
2021a55775 Add more '/' checks to rm 2013-12-17 22:17:05 -08:00
Arcterus
d08d8c8029 Add simple rm implementation 2013-12-17 22:09:32 -08:00