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
ce19eb4329
Update to Rust nightly
2014-06-11 21:48:36 -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
1bf7569084
StrBuf was renamed to String
2014-05-25 11:20:52 +02:00
Michael Gehring
46b9d6d78e
Remove the now unnecessary conversion of os::args() ret val.
2014-05-23 14:35:58 +02:00
Michael Gehring
0ce3f0f4e1
Adapt to removal of ~str from libstd.
2014-05-23 14:28:40 +02:00
Michael Gehring
ff9620fcd9
du: cope with path removal from FileStat
2014-05-17 19:27:30 +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
Arcterus
4e8703e04f
Fix everything but md5sum (blocked on rust-crypto) for latest Rust
2014-04-25 22:03:08 -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
Arcterus
b55b459e80
du: fix for latest Rust
2014-03-25 18:57:10 -07:00
Alan Andrade
10d7a0cc9c
Fix master by using Vec and adjusting
2014-03-22 02:17:27 -07:00
Huon Wilson
6072554512
du: make it correct.
...
Previously, this was handling symlinks wrong (i.e. `du` was following
them, not just looking at them as files). Handling them correctly
requires using `lstat`.
Also, this would abort when reading a file with invalid permissions (or
one that doesn't exist... as a link target of a symlink), rather than
just warning and continuing.
Also, this patch reduces the number of `stat`s done per file to exactly
one (i.e. the minimum).
2014-03-19 18:45:20 +11:00
Huon Wilson
3c1466c4ed
du: remove some clones.
2014-03-19 18:12:43 +11:00
Huon Wilson
a4c40503be
du: use multi-line strings and print the actual name, not a literal du
.
2014-03-19 17:57:35 +11:00
Huon Wilson
4d9c71e541
du: be dryer when extracting the --max-depth arg.
...
There's no need to repeat the two checks for `from_str` when we can just
do it preemptively.
2014-03-19 17:56:40 +11:00
Heather
9b9def6891
allow uppercase variables for du
2014-03-06 10:48:32 +04:00
Alan Andrade
de21ff4c2f
Move util.rs to common
2014-02-23 22:50:34 -08:00
Arcterus
b608664135
Update for latest Rust
2014-02-23 13:31:51 -08:00
Heather
7e95703d61
remove -h as --help variant from du because of conflict
2014-02-19 09:59:12 +04:00
Heather
52f17ef227
du: add -V and -h
2014-02-10 08:56:13 +04:00
Heather
4a30b69562
du --version was not implemented
2014-02-09 15:00:41 +04:00
Arcterus
63f6c9719b
Fix du, which closes #46 , and id when not compiling on Linux
2014-02-18 17:12:24 -08:00
Derek Chiang
882a6403f8
Fixing time format string
2013-12-11 18:20:52 -05:00
Derek Chiang
c4db2f3329
Adding partial support for formatting time
2013-12-11 05:09:45 -05:00
Derek Chiang
a228acbb50
Correctly calculate file size using number of blocks
2013-12-09 02:11:11 -05:00
Derek Chiang
9eae93e8a1
Add formatting-related logic
2013-12-08 04:22:09 -05:00
Derek Chiang
14edd5704b
Implemented a few more options
2013-12-08 02:44:32 -05:00
Derek Chiang
5ab82df876
Getting it to display the correct directory size
2013-12-08 01:36:36 -05:00
Derek Chiang
661ac1be78
Get basic functionality to work
2013-12-03 21:08:42 -05:00