Commit graph

1283 commits

Author SHA1 Message Date
Joseph Crail
0bbefa913e Merge pull request #622 from himikof/fix-env
Fix `env -` option handling case
2015-05-26 18:45:54 -04:00
Nikita Ofitserov
abd3e1e8e4 Fix 'env -' case 2015-05-27 00:51:14 +03:00
Nikita Ofitserov
c32e21fc01 Add a test for the 'env -' case 2015-05-27 00:49:50 +03:00
Heather
bff831f376 Merge pull request #621 from jbcrail/standardize-name-version
Standardize display of utility name and version.
2015-05-25 22:10:08 +03:00
Joseph Crail
28e00cbd78 Standardize display of utility name and version. 2015-05-25 14:50:15 -04:00
Heather
a1017a24dd Merge pull request #620 from jbcrail/add-manual-flush
Add macro to manually flush a writer.
2015-05-23 10:45:55 +03:00
Joseph Crail
d558e37288 Add macro to manually flush a writer.
I built upon the pipe_* macros, adding pipe_flush!() to flush an
optional writer (default to stdout if no writer is given).
2015-05-23 03:31:42 -04:00
Heather
9ee7d96e5b Merge pull request #619 from jbcrail/replace-utf8-ellipsis
Replace UTF-8 ellipsis character w/ ASCII periods.
2015-05-23 09:06:56 +03:00
Heather
825444aa13 Merge pull request #618 from jbcrail/fix-flush-bug-for-echo
Fix failure to print stdout for echo.
2015-05-23 09:06:38 +03:00
Joseph Crail
2ef14832dc Replace UTF-8 ellipsis character w/ ASCII periods. 2015-05-23 01:56:33 -04:00
Joseph Crail
07d57ac109 Fix failure to print stdout for echo.
Upon program termination, pending stdout writes were not automatically
flushed. When newlines are disabled, I force a flush to stdout.
2015-05-22 21:49:33 -04:00
Heather
98a86e60c8 Merge pull request #617 from vinipsmaker/patch-1
cat.rs: removing need for mut variable
2015-05-22 20:06:29 +03:00
Vinícius dos Santos Oliveira
c17f925b11 cat.rs: removing need for mut variable 2015-05-22 13:53:13 -03:00
Heather
ca53d2beb3 Merge pull request #616 from jbcrail/use-getopts-cargo-3
Switch to external getopts cargo (part 3).
2015-05-22 07:38:17 +03:00
Joseph Crail
496d5883a4 Switch to external getopts cargo (part 3).
I switched over to the getopts crate on crates.io, instead of Rust's
private implementation. This will allow coreutils to build for Rust 1.0.

I'm splitting the updates into several commits for easier reviewing.
2015-05-21 21:32:55 -04:00
Heather
bc3eb2af96 Merge pull request #615 from jbcrail/use-getopts-cargo-2
Switch to external getopts cargo (part 2).
2015-05-22 00:16:03 +03:00
Joseph Crail
509a35ff7a Switch to external getopts cargo (part 2).
I switched over to the getopts crate on crates.io, instead of Rust's
private implementation. This will allow coreutils to build for Rust 1.0.

I'm splitting the updates into several commits for better reviewing.
2015-05-21 15:00:34 -04:00
Heather
53dce1f243 Merge pull request #614 from jbcrail/use-getopts-cargo
Switch to external getopts cargo (part 1).
2015-05-21 12:05:49 +03:00
Joseph Crail
b4b08de42c Switch to external getopts cargo (part 1).
I switched over to the getopts crate on crates.io, instead of Rust's
private implementation. This will allow coreutils to build for Rust 1.0.

I'm splitting the updates into several commits for better reviewing.
2015-05-20 22:47:30 -04:00
Heather
d6837c8709 Merge pull request #610 from jbcrail/tweak-travis
Add separate builds for stable and nightly.
2015-05-20 07:16:45 +03:00
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