Heather
90af62721e
Merge pull request #611 from jbcrail/rm-unstable-regex-macros
...
Remove unstable regex macros.
2015-05-20 07:16:05 +03:00
Joseph Crail
a94bd0bd35
Remove unstable regex macros.
...
This will allow coreutils to get further along when building against
Rust 1.0.
2015-05-19 21:40:03 -04:00
Joseph Crail
7a54aa56eb
Add separate builds for stable and nightly.
2015-05-19 10:24:27 -04:00
Heather
e7518b3eae
Merge pull request #608 from jbcrail/rm-unstable-exit-status
...
Replace unstable set_exit_status() with exit().
2015-05-19 07:15:14 +03:00
Heather
ff5310a118
Merge pull request #607 from jbcrail/fix-nohup
...
Fix nohup.
2015-05-19 07:14:40 +03:00
Joseph Crail
7d1d307b92
Replace unstable set_exit_status() with exit().
...
With the 1.0 release, unstable features are causing build errors. I
replaced references to std::env::set_exit_status() with
std::process::exit().
2015-05-18 21:22:51 -04:00
Joseph Crail
430e9530d4
Fix nohup.
...
I upgraded to the nightly build.
2015-05-18 20:27:32 -04:00
Heather
37f35cd3f8
Merge pull request #605 from jbcrail/fix-stdbuf
...
Fix stdbuf.
2015-05-18 08:45:17 +03:00
Heather
b02dff807a
Merge pull request #606 from jbcrail/fix-linux-build-for-mkfifo
...
Fix mkfifo on Linux.
2015-05-18 08:45:03 +03:00
Joseph Crail
c4d8312e6b
Fix mkfifo on Linux.
...
The build failed because of type mismatch errors for the mode
permission.
2015-05-18 00:53:37 -04:00
Joseph Crail
a2400a272f
Fix stdbuf.
...
The build only works on Linux at the moment.
2015-05-17 23:27:57 -04:00
Heather
fda91c492a
Merge pull request #604 from jbcrail/fix-id-kill
...
Fix id and kill.
2015-05-17 22:47:30 +03:00
Joseph Crail
7d71dfbbf4
Fix kill.
2015-05-17 15:26:52 -04:00
Joseph Crail
c93440170d
Fix id.
2015-05-17 14:59:04 -04:00
Heather
b4f061b4da
Merge pull request #603 from jbcrail/update-hashsum
...
Update hashsum.
2015-05-17 08:14:24 +03:00
Joseph Crail
9d74bbe532
Add initial tests for hashsum.
2015-05-16 18:03:09 -04:00
Joseph Crail
1837146134
Update hashsum.
...
Most of the work centered around fixing lifetime issues.
2015-05-16 13:28:36 -04:00
Heather
3cc357e118
Merge pull request #601 from kwantam/master
...
improved Sieve implementation ; add `cargo update`
2015-05-16 08:25:23 +03:00
Heather
833a7026b6
Merge pull request #602 from jbcrail/add-tests
...
Add tests for rm and unlink.
2015-05-16 08:23:31 +03:00
Joseph Crail
906ba3e24a
Add tests for unlink.
2015-05-15 20:11:54 -04:00
kwantam
e1dac4695e
improved Sieve implementation ; add cargo update
...
This commit adds `cargo update` to the distclean target in the
makefile. This updates the Cargo.lock file when clearing the
deps directory.
In addition, it adds a faster implementation of the Sieve of
Eratosthenes for use by `src/factor/gen_table.rs` and `test/factor.rs`.
2015-05-15 19:39:43 -04:00
Joseph Crail
497c04ad44
Add tests for rm.
2015-05-15 19:14:42 -04:00
Heather
9bc58bbdda
Merge pull request #600 from jbcrail/fix-du
...
Fix du.
2015-05-15 07:30:30 +03:00
Joseph Crail
349622a05b
Fix du.
...
In addition to upgrading the nightly build, I flattened the Stat struct
to embed the metadata fields. This simplified access to the values, but
needed a constructor method for ergonomic reasons.
2015-05-14 18:35:55 -04:00
Heather
94cd6eb543
usernames can only be up to 104 characters in windows, fix #565
2015-05-14 08:27:47 +04:00
Heather
f0e5c19ed4
Merge pull request #597 from jbcrail/update-mkdir
...
Update mkdir.
2015-05-14 07:16:11 +03:00
Heather
aca7775926
Merge pull request #598 from jbcrail/fix-mv
...
Fix mv.
2015-05-14 07:14:54 +03:00
Heather
18a99f5bd5
Merge pull request #599 from jbcrail/fix-mkfifo
...
Fix mkfifo.
2015-05-14 07:14:27 +03:00
Joseph Crail
46bd77c3c2
Fix mkfifo.
2015-05-13 22:22:13 -04:00
Joseph Crail
18da32f394
Fix mv.
2015-05-13 21:05:36 -04:00
Joseph Crail
7f3d4ebf5b
Update mkdir.
...
In addition to upgrading to the nightly build, I refactored the method
that creates the directories by switching from a recursive approach to
an iterative one. I also replaced the obsolete fs::mkdir() with a custom
method using fs::create_dir() and libc::chmod(). I added several
diagnostic messages that match the GNU implementation.
2015-05-13 16:38:11 -04:00
Heather
9b193d8d8a
Merge pull request #594 from jbcrail/update-fold
...
Update fold to replace vector concatenation.
2015-05-13 07:22:47 +03:00
Heather
e078092c80
Merge pull request #595 from jbcrail/update-readlink
...
Update readlink.
2015-05-13 07:22:21 +03:00
Heather
eba90561f6
Merge pull request #596 from jbcrail/remove-returns
...
Remove tail return statements.
2015-05-13 07:21:55 +03:00
Joseph Crail
f502b187a7
Remove tail return statements.
2015-05-12 19:54:12 -04:00
Joseph Crail
481fdd744a
Add tests for readlink.
2015-05-12 17:09:41 -04:00
Joseph Crail
b2063d6d73
Update readlink.
...
I updated to the nightly build, completed support for the verbose flag,
and refactored the canonicalization method to simplify and add support
for Windows paths.
2015-05-12 17:07:31 -04:00
Joseph Crail
66a7dc8cb7
Update fold to replace vector concatenation.
...
The syntax for concatenating a vector and a slice use the '+' operator
was removed from Rust.
2015-05-12 16:52:15 -04:00
Heather
57050517f9
Merge pull request #593 from kwantam/master
...
fix `cut`
2015-05-12 07:10:02 +03:00
Heather
60e3603410
Merge pull request #592 from jbcrail/fix-nice
...
Fix nice.
2015-05-12 07:06:43 +03:00
kwantam
aabbf83d88
fix cut
...
This commit updates `cut` to build on rust nightly.
In addition, it adds support for null input and output delimiters,
and fixes a bug in the `cut_characters()` function that would cause
incorrect output when two adjacent fields were specified in the range
list.
2015-05-11 21:15:39 -04:00
Joseph Crail
1ee57fa229
Fix nice.
2015-05-11 17:40:45 -04:00
Heather
c94a5ce808
Merge pull request #589 from jbcrail/fix-nl
...
Fix nl.
2015-05-11 08:08:50 +03:00
Heather
cf1723892d
Merge pull request #590 from jbcrail/fix-nproc
...
Fix nproc.
2015-05-11 08:08:21 +03:00
Heather
c8dbe036e5
Merge pull request #591 from jbcrail/fix-od
...
Fix od.
2015-05-11 08:07:17 +03:00
Joseph Crail
b20bde94cb
Fix od.
...
I upgraded to the nightly build and replaced the unstable BYTES constant
with mem::size_of().
2015-05-11 00:48:36 -04:00
Joseph Crail
58de022ed4
Fix nproc.
...
Since std::os::num_cpus() was removed from the library, I added the
num_cpus crate to the dependencies.
2015-05-10 22:20:20 -04:00
Joseph Crail
28c21902c5
Fix nl.
...
Aside from the usual upgrades to sync with the nightly build, I fixed an
unwrap() panic when reading lines with only a newline. I also refactored
the repeated command calls to use helper functions.
2015-05-10 18:59:37 -04:00
Heather
8deb9a8dc1
Merge pull request #588 from jbcrail/cleanup-pwd
...
Cleanup pwd.
2015-05-10 12:35:22 +03:00
Heather
93a96abcae
Merge pull request #587 from jbcrail/add-tsort-test
...
Add initial test for tsort.
2015-05-10 12:35:05 +03:00