Commit graph

679 commits

Author SHA1 Message Date
Arcterus
df9a296100 Implement md5sum (closes #47) 2014-03-24 16:53:35 -07:00
Heather
ce6b80001f Merge pull request #142 from alan-andrade/master-fix
Fix master by using Vec and adjusting
2014-03-22 13:44:06 +03:00
Alan Andrade
10d7a0cc9c Fix master by using Vec and adjusting 2014-03-22 02:17:27 -07:00
Heather
2e29f4cc79 Merge pull request #138 from dpc/master
Rebase my changes on top of master.
2014-03-19 22:08:35 +03:00
Dawid Ciężarkiewicz
a93023372c Use .unwrap() and &byte for cleaner code.
(cherry picked from commit 0a91290d91)
2014-03-19 11:40:52 -07:00
Dawid Ciężarkiewicz
893ab7c761 Increase buffers for boost in performance.
(cherry picked from commit 4b702bc952)
2014-03-19 11:40:46 -07:00
Dawid Ciężarkiewicz
a42bdea8ac Use Buffered input/output where it makes sense.
(cherry picked from commit c084bb1568)
2014-03-19 11:40:42 -07:00
Dawid Ciężarkiewicz
3ab1865177 Use raw stdin/stdio.
Buffered one is expensive and serves no purpose.

(cherry picked from commit ace707d504)
2014-03-19 11:40:37 -07:00
Dawid Ciężarkiewicz
fb8e502980 Add vim formatting comment.
Because otherwise, I can't do any work. ;)

(cherry picked from commit 05d026d0d0)
2014-03-19 11:40:32 -07:00
Dawid Ciężarkiewicz
49f3f0ea32 Fix compilation for latest rustc.
Some warning are still there.

(cherry picked from commit 5c690b33d6)

Conflicts:
	cp/cp.rs
2014-03-19 11:38:32 -07:00
Heather
d3851a5cf2 Merge pull request #135 from huonw/du
Correctness & code-style in du
2014-03-19 11:34:47 +03: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
dc24cc1776 Merge pull request #133 from jlneder/master
Implement uptime
2014-03-18 19:15:19 +03:00
José Neder
ef4a5e965d Implement uptime
Move utmp struct from users to common/utmpx.rs
2014-03-18 09:42:44 -03: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
Arcterus
a75e42d4db Merge pull request #130 from alan-andrade/fix_master
Fix master by comparing against slices, not ~
2014-03-13 16:55:34 -07:00
Alan Andrade
1dc2cd3a0f Fix master by comparing against slices, not ~ 2014-03-13 16:12:28 -07:00
Arcterus
a10cb64f7e Merge pull request #128 from Doppp/expand_in_progress
expand in progress
2014-03-08 22:55:07 -08:00
Daryl Yeo
8c2f980130 expand in progress 2014-03-08 22:38:47 -08:00
Arcterus
ce6423cc14 Merge pull request #125 from Heather/master
allow uppercase variables for du
2014-03-05 22:50:26 -08:00
Heather
9b9def6891 allow uppercase variables for du 2014-03-06 10:48:32 +04:00
Arcterus
3356f73c68 Merge pull request #124 from alan-andrade/patch-5
stty in progress
2014-03-01 18:19:21 -08:00
Alan Andrade
278d21d299 stty in progress 2014-03-01 17:21:15 -08:00
Heather
477065b507 Merge pull request #123 from Arcterus/mkdir
mkdir: improve error handling (closes #121)
2014-03-01 09:18:45 +03:00
Arcterus
af60356f79 mkdir: improve error handling (closes #121) 2014-02-28 13:36:58 -08:00
Heather
b8cd414dd7 Merge pull request #122 from Arcterus/paste
Implemented paste
2014-02-28 21:59:31 +03:00
Arcterus
e442cadbaf Remove paste from the to-do list 2014-02-28 10:13:54 -08:00
Arcterus
2a875c0f49 paste: make MUCH faster and fix a couple bugs 2014-02-28 10:11:24 -08:00
Arcterus
fac630d07c Add paste (closes #120) 2014-02-28 09:19:32 -08:00
Heather
b68dd16d56 Merge pull request #119 from Arcterus/tac
tac: fix an issue with --separator
2014-02-28 08:41:08 +03:00
Arcterus
6b6bd77e2e tac: fix an issue with --separator 2014-02-27 21:34:43 -08:00
Heather
c01fc5392a Merge pull request #118 from Arcterus/tac
Implement tac (closes #117)
2014-02-27 23:18:34 +03:00
Arcterus
2d64fd7d50 Remove a couple of programs from the to-do list 2014-02-27 11:05:47 -08:00
Arcterus
c21dcc50dc Implement tac (closes #117) 2014-02-27 10:59:51 -08:00
Heather
c94c04dc90 Merge pull request #115 from Arcterus/master
Fix for latest Rust
2014-02-27 07:09:48 +03:00
Arcterus
8cf617d08f Fix for latest Rust 2014-02-26 19:35:50 -08:00
Arcterus
0d8cfbbe45 Merge pull request #114 from alan-andrade/groups
Groups
2014-02-26 19:13:50 -08:00
Alan Andrade
8127d8b43d id and groups share functions 2014-02-25 23:42:37 -08:00
Arcterus
6151cb93be Update for new programs 2014-02-24 14:07:20 -08:00
Arcterus
1ebcd6534d Merge pull request #110 from humboldtux/master
logname implementation
2014-02-24 14:05:34 -08:00
humboldtux
96a84f73b5 logname implementation 2014-02-24 22:24:01 +01:00
Arcterus
03f62cc5d9 Make the capitalization of Rust consistent 2014-02-23 23:14:02 -08:00
Arcterus
faf01182b6 Merge pull request #107 from alan-andrade/common
/common for code reusability
2014-02-23 23:06:11 -08:00
Alan Andrade
b6018f38e8 whoami and id use c_types 2014-02-23 22:51:29 -08:00
Alan Andrade
2420c38b7e Groom id/id.rs to work with util.rs 2014-02-23 22:51:29 -08:00
Alan Andrade
de21ff4c2f Move util.rs to common 2014-02-23 22:50:34 -08:00
Heather
26c5d7e245 Merge pull request #105 from Arcterus/master
Update for latest Rust
2014-02-24 07:25:04 +03:00