Commit graph

253 commits

Author SHA1 Message Date
Michael Gehring
88ab6cfff7 Merge pull request #563 from jbcrail/fix-printenv
Fix printenv.
2015-05-03 11:49:13 +02:00
Joseph Crail
965a770841 Remove quotes from current directory. 2015-05-02 21:05:30 -04:00
Joseph Crail
c4ae971e8c Fix hostid and pwd.
Minor library upgrades and whitespace corrections.
2015-05-01 22:00:53 -04:00
Joseph Crail
930896bac1 Fix printenv.
Minor corrections and upgrade to new env variable module.
2015-05-01 15:54:49 -04:00
Joseph Crail
c7d07315b8 Fix groups and logname.
Minor upgrades and whitespace corrections.
2015-04-30 17:56:35 -04:00
Joseph Crail
3465525d55 Fix tty.
I made minor corrections to upgrade to Rust nightly build.
2015-04-30 17:06:38 -04:00
Alex Lyon
4a6b7d33cb Merge pull request #557 from jbcrail/fix-truncate
Fix truncate and related tests.
2015-04-29 18:50:05 -07:00
Joseph Crail
27947c9d2d Fix dirname. 2015-04-29 21:20:08 -04:00
Joseph Crail
5ec7f28625 Fix truncate and related tests. 2015-04-29 19:23:50 -04:00
Joseph Crail
c6cfca8366 Remove redundant length checks. 2015-04-29 02:37:29 -04:00
Joseph Crail
3b09af815d Fix head and tail.
I upgraded to the recent Rust release. The only major change was the
reduction of the sleep millisecond resolution from u64 to u32 (this
matches the thread::sleep_ms() method).
2015-04-29 02:37:29 -04:00
kwantam
91827a594a fix tr and its test
In addition, this commit substantially reduces the number
of allocations that tr does when building the substitution
tables.
2015-04-29 01:31:16 -04:00
kwantam
8e2788bd39 fix/rewrite expand
This is a reworked version of expand. I did this for two main
reasons:

1. The previous version assumed the input was UTF-8. This
   version is compatible with both UTF-8 and non-UTF-8 inputs.

2. This version has a new flag, -U, which forces expand to
   treat input as 8-bit ASCII rather than interpreting it
   as UTF-8. This might be handy in some cases.
2015-04-29 01:09:27 -04:00
kwantam
feee266b20 fix/rewrite unexpand and its tests
This is a reworked version of unexpand. I did this for two main
reasons:

1. The previous version of unexpand had issues correctly computing
   tabstops when the `-a` flag was supplied.

2. The previous version assumed the input was UTF-8. This version works
   with non-UTF-8 inputs.

3. This version has a new flag, -U, which forces unexpand to
   treat input as 8-bit ASCII rather than interpreting it
   as UTF-8. This might be handy in some cases.
2015-04-29 01:09:27 -04:00
kwantam
ec4e3a60e4 fix unlink 2015-04-29 01:09:26 -04:00
kwantam
d1f594eb68 remove box_syntax feature from fmt, base64, cat 2015-04-29 01:09:26 -04:00
Joseph Crail
2c4fd7ae23 Fix tsort.
I upgraded to the recent Rust release.
2015-04-29 00:01:46 -04:00
kwantam
2e237dd6bb fix uname 2015-04-27 22:06:19 -04:00
kwantam
1d62f35b45 fix uptime 2015-04-27 22:00:19 -04:00
kwantam
a122849e7c fix wc 2015-04-27 18:19:56 -04:00
kwantam
143aea72ee fix users 2015-04-27 17:38:39 -04:00
kwantam
09937b66b9 fix whoami 2015-04-27 17:31:53 -04:00
kwantam
8cd81ec418 update uniq 2015-04-27 15:27:15 -04:00
kwantam
05520e69cb clean up #![features]
For the most part, this commit removes the `collections` feature.
In some places I've removed other features where the effort to do
so was pretty low.
2015-04-27 15:27:15 -04:00
kwantam
de28072140 update yes
This commit makes `yes` build on recent nightly.
2015-04-27 15:27:15 -04:00
kwantam
970857ccbe working chroot implementation 2015-04-27 00:06:12 -04:00
kwantam
664f7d474e update chroot (not quite working yet) 2015-04-26 16:12:19 -04:00
kwantam
06f1b38c91 update chmod for latest stdlib changes 2015-04-26 16:12:19 -04:00
Camille TJHOA
c8365f78b4 chroot new_io 2015-04-26 20:23:29 +02:00
Camille TJHOA
d990efff83 chmod new_io 2015-04-26 20:03:37 +02:00
kwantam
d4f39e1638 dependency builds use Cargo
With this change, individual submodules can specify their dependencies with
an additional file called "deps.mk" in the subdir. When building, only
the dependencies that are necessary are built, using cargo, and then linked.

This greatly simplifies adding new dependencies: add the package in
deps/Cargo.toml, and add the appropriate line in "deps.mk" in the
src/utilname/ directory, and the dependency will be built automatically
as needed.

This also removes the need to use git submodules.
2015-04-25 22:18:03 -04:00
kwantam
c6585b7086 make seq build on nightly 2015-04-25 22:09:06 -04:00
kwantam
cc48e83e98 update cat, cat tests to new API
This commit updates the `cat` utility as well as its testbench
to work with the latest APIs.
2015-04-25 03:28:06 -04:00
Joseph Crail
7c0eb246a0 Upgrade echo to use recent Rust nightly build.
I removed unused features, switched to the new range syntax, and other
minor updates.
2015-04-24 22:31:47 -04:00
Camille TJHOA
7332d7d827 Basename new_io 2015-04-24 00:10:18 +02:00
Camille TJHOA
a7caf3c86a Cksum new_io 2015-04-23 23:52:45 +02:00
Joseph Crail
92bbd7b2ce Upgrade base64 to use recent Rust nightly build. 2015-04-23 01:03:35 -04:00
kwantam
ecf248c5e3 fix build infrastructure ; modernize library use
This patch begins the work of modernizing uutils to work with 1.0-ish
Rust. In particular, it

1. Updates to the latest submodules.

2. Convert mkmain.rs, mkuutils.rs, and src/uutils/uutils.rs
   to new slice syntax and use of new io, fs, and path APIs.

3. Convert src/common/util.rs to new io, fs, and path APIs.

4. Convert fmt to use new APIs.
2015-04-18 19:55:32 -04:00
Michael Gehring
3529c5d809 Update feature flags 2015-03-08 19:09:41 +01:00
Michael Gehring
9f8fd55b4a Integer type changes 2015-03-08 19:06:30 +01:00
Michael Gehring
bce3382fd2 Closure syntax 2015-03-08 19:06:04 +01:00
Michael Gehring
a5547507af c_str_to_bytes -> CStr::from_ptr 2015-02-22 13:59:57 +01:00
Michael Gehring
eb6594cc91 CString::from_slice -> CString::new 2015-02-22 13:59:57 +01:00
Michael Gehring
3993a2bf90 Update feature flags 2015-02-22 13:59:57 +01:00
Michael Gehring
26568d2021 Update to the new integer suffixes 2015-02-22 13:59:57 +01:00
Michael Gehring
8098d172d7 Update slicing syntax ([] -> [..]) 2015-02-22 13:59:12 +01:00
Michael Gehring
9ae9a48387 feature io -> old_io, path -> old_path 2015-02-22 13:59:12 +01:00
Michael Gehring
4e79a82f46 fix feature warnings 2015-02-22 13:59:12 +01:00
Michael Gehring
50301e63ee env::args return Strings now 2015-02-22 13:59:12 +01:00
Michael Gehring
ec9c8659ea Drop unused imports 2015-02-22 13:59:12 +01:00