Gustavo Hexsel
f8df842dfb
Moved code officially to run on nightly since it's a dependency
2015-08-26 12:50:07 -04:00
Sam Gibson
c06b8218f7
Fix build by making du not use futures
...
Use channels and push them into a vector instead. Code remains largely the same.
2015-08-24 18:57:09 +12:00
Joseph Crail
26f0ec8379
Fix difference w/ GNU coreutils' sum.
...
When using the SYSV algorithm and reading from standard input, the GNU
coreutils implementation does not output the filename, in this case "-".
2015-08-14 00:10:15 -04:00
Heather
809affff6c
Merge pull request #678 from jbcrail/stabilize-4
...
Remove unstable features from mv/touch.
2015-08-12 08:13:40 +03:00
Joseph Crail
e9b008cf70
Remove unstable features from ptx.
...
I cleaned up string references, whitespace, and use of unstable
features. I also added a comment about reverting to connect, making
others aware that the method should be replaced by join after 1.3.
2015-08-12 00:01:10 -04:00
Joseph Crail
eff8851cf9
Fix bug when setting time w/o year.
2015-08-11 21:45:11 -04:00
Joseph Crail
e455ba5de1
Replace unstable set_file_times w/ external crate.
2015-08-11 21:45:11 -04:00
Joseph Crail
9d84890c89
Convert to byte vec w/o using deprecated methods.
2015-08-11 21:45:11 -04:00
Joseph Crail
480019f5b3
Add comments for deprecated connect().
...
We are using connect() instead of join() until Rust 1.3 is stable.
Currently, connect() is just a thin wrapper over join(). Keeping the
deprecated method allows us to build on all releases.
2015-08-09 23:12:23 -04:00
Joseph Crail
43d3834880
Backport and/or replace unstable features.
...
I removed the unstable slice_patterns and str_char features. I also used
the deprecated connect() method, instead of join().
2015-08-08 03:53:21 -04:00
Joseph Crail
b089831ea0
Switch over to internal canonicalize().
...
The method, fs::canonicalize(), is unstable and can't be used for stable
builds. We already have our own implementation of canonicalize(), which
supports more options than the Rust library implementation.
2015-07-31 18:55:33 -04:00
Joseph Crail
4a331897cb
Replace unstable VecMap w/ external crate.
2015-07-31 17:05:22 -04:00
Joseph Crail
4300cd5a48
Replace unstable init() method.
2015-07-31 16:21:06 -04:00
Joseph Crail
047d963a26
Remove unused feature attribute.
2015-07-31 16:21:06 -04:00
Joseph Crail
f41d5b3f8f
Replace unstable fs:walk_dir() w/ external crate.
2015-07-31 16:21:06 -04:00
Joseph Crail
6ff576e300
Use non-PathExt canonicalize().
2015-07-31 16:21:06 -04:00
Joseph Crail
f03b22a65c
Stabilize several PathExt methods.
2015-07-31 16:21:06 -04:00
Karol Rozycki
b025b44806
-f flag for uniq
2015-07-31 19:37:40 +02:00
Joseph Crail
9bc6eb4e7b
Replace deprecated methods.
...
I replaced position_elem() and slice_chars(). I also removed an unused
feature attribute.
2015-07-30 22:21:18 -04:00
Joseph Crail
157c20c7d3
Replace deprecated methods.
2015-07-27 00:35:34 -04:00
Peter Atashian
010bda9df2
Fix build on non-windows
...
Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-07-20 16:40:29 -04:00
Peter Atashian
47f82f0de2
Various Windows fixes
...
Improve handling of unicode on Windows
Disable a few crates on Windows that abuse unix APIs too much
Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-07-19 20:25:48 -04:00
Joseph Crail
49d9de17fe
Fix deprecation warnings for tr.
...
I switched over to the bit-vec/bit-set cargos.
2015-07-09 18:30:03 -04:00
Alex Lyon
8f6d13df5f
Merge pull request #647 from jbcrail/fix-osx-stdbuf
...
Fix OS X build errors for stdbuf.
2015-07-09 14:58:07 -07:00
Alex Lyon
7c2ed679ab
Merge pull request #649 from jbcrail/fix-stdbuf-regression
...
Fix stdbuf regression.
2015-07-09 12:58:13 -07:00
Joseph Crail
b8ab2c125f
Fix stdbuf regression.
...
When replacing range_inclusive(), I introduced a bug when parsing
arguments. I added a smoke test to prevent basic regressions in the
future.
2015-07-09 15:23:14 -04:00
Joseph Crail
3fa2e89a7a
Fix OS X build errors for stdbuf.
...
I removed unused linker flags, added platform-specific linker flags, and
used DYLD_LIBRARY_PATH (instead of DYLD_INSERT_LIBRARIES) for loading
the dynamic library. I also removed an unused variable mutation.
2015-07-09 13:04:04 -04:00
Joseph Crail
3270040778
Remove unused mutation from variables.
2015-07-08 22:24:02 -04:00
Joseph Crail
01b0d5da1c
Remove unused attribute.
2015-07-05 22:36:34 -04:00
Joseph Crail
9f1dc98925
Add initial implementation for ln.
...
There are several areas needing improvement:
1) add tests for hard links
2) add implementation for uncommon flags (-d, -L, -n, -P, -r)
3) align error messages more closely with GNU implementation
2015-07-05 14:52:31 -04:00
Joseph Crail
951be1bfaa
Fix alignment of mv help.
2015-07-01 22:09:33 -04:00
Joseph Crail
dd97629a0e
Merge pull request #640 from remram44/mv-strip-trailing-slashes
...
Implement mv's --strip-trailing-slashes
2015-06-30 23:31:03 -04:00
Remi Rampin
0691965d63
Use ChildExt to wait from timeout.rs
2015-06-30 18:45:13 -04:00
Remi Rampin
dc40480e6e
Switch wait_or_timeout() to f64
2015-06-30 18:44:32 -04:00
Remi Rampin
d806ab4809
Use ChildExt to kill from timeout.rs
2015-06-30 18:44:30 -04:00
Remi Rampin
cce3d5171d
ChildExt for send_signal() and wait_or_timeout()
2015-06-30 18:42:51 -04:00
Remi Rampin
13f5994e15
Rename time.rs to parse_time.rs
...
Conflicts with crate time.
2015-06-30 18:42:51 -04:00
Remi Rampin
28302555b8
Replace missing signal() by libc kill() directly
2015-06-30 18:42:50 -04:00
Remi Rampin
66a40d555d
Update timeout.rs to new io
2015-06-30 18:42:19 -04:00
Remi Rampin
0ed57b3896
Fix simple typo in mv.rs
2015-06-30 15:21:40 -04:00
Remi Rampin
b8d5602655
Implement mv's --strip-trailing-slashes
2015-06-30 13:24:19 -04:00
Joseph Crail
690a483a8a
Update to nightly build.
...
I updated the library dependencies, features, and deprecated methods.
2015-06-23 23:00:00 -04:00
Joseph Crail
cf7db989e7
Update dependencies.
...
I added the regex-syntax crate to the dependencies for hashsum, nl, and
ptx.
2015-06-04 22:37:51 -04:00
Joseph Crail
0df4918f2d
Fix split tests.
...
I added an additional regex dependency and converted strings to
Vec<u8>'s for the assertions.
2015-06-04 13:57:17 -04:00
Joseph Crail
1e22455032
Align formatting with GNU implementation.
2015-06-03 01:41:56 -04:00
Joseph Crail
ac8d972ed9
Refactor wc settings into dedicated struct.
2015-06-03 01:41:56 -04:00
Joseph Crail
b25a344566
Add quiet and verbose flags to head.
2015-05-31 20:26:57 -04:00
Joseph Crail
1580daea7c
Refactor utility settings into dedicated struct.
...
This will make it easier to add support for additional options, such as
verbosity and negative byte/line counts.
2015-05-30 19:10:15 -04:00
Joseph Crail
b008ed103d
Improve descriptions of available options.
2015-05-30 19:10:15 -04:00
Joseph Crail
826d8a6530
Add newline when printing lines.
2015-05-30 19:10:15 -04:00