Heather
22093d1e5a
Merge pull request #574 from ctjhoa/master
...
Update comm to new_io
2015-05-07 07:42:23 +03:00
Joseph Crail
500bbbfa83
Fix env and add tests.
...
I updated env to use the nightly build. I also added several tests.
2015-05-06 23:59:58 -04:00
Camille TJHOA
53f62cdd6f
Update comm to new_io
2015-05-07 01:05:30 +02:00
Heather
1f2b68251f
Merge pull request #573 from jbcrail/fix-link-sum
...
Fix link and sum.
2015-05-07 00:21:09 +03:00
Heather
5ec1c7bea4
Merge pull request #570 from jbcrail/fix-sort-test
...
Fix failing test for sort.
2015-05-07 00:19:53 +03:00
Joseph Crail
0c883155f5
Fix sum.
2015-05-06 14:12:30 -04:00
Joseph Crail
6911c7e2ce
Fix link.
2015-05-06 13:38:45 -04:00
Heather
7c732bcefe
Merge pull request #571 from jbcrail/fix-cp
...
Fix cp.
2015-05-06 07:43:16 +03:00
Joseph Crail
b854a3161a
Fix realpath and relpath.
...
I used the new Path/PathBuf/PathExt libraries.
2015-05-06 00:14:13 -04:00
Joseph Crail
c31ad75226
Fix cp.
...
I used the new File/Path libraries. The canonicalize method made much of
paths_refer_to_same_file() redundant.
2015-05-05 19:42:38 -04:00
Joseph Crail
b809af601a
Fix failing test for sort.
...
The sorted values were not outputted using a newline.
2015-05-05 19:39:30 -04:00
Joseph Crail
cec0a29b93
Rewrite tee.
...
The utility need a substantial rewrite due to library changes and
lifetime issues. I needed to implement the MultiWriter struct since it
was no longer available.
2015-05-05 00:08:54 -04:00
Heather
15acf2a2b5
Merge pull request #566 from jbcrail/update-tty
...
Update tty and ignore build directories.
2015-05-04 08:32:26 +03:00
Joseph Crail
b0f531c7a3
Fix sort.
...
Minor corrections: upgrade to new libraries, remove unused features, use
new slicing syntax.
2015-05-03 17:42:01 -04:00
Joseph Crail
6de22f91a9
Update tty's options to conform to GNU version.
2015-05-03 17:11:42 -04:00
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
Michael Gehring
910fd61070
os::args -> env::args
2015-02-22 13:59:12 +01:00
Michael Gehring
e7b647171f
os::set_exit_status(isize) -> env::set_exit_status(i32)
2015-02-22 13:59:12 +01:00
Michael Gehring
4d62e8289a
collections::BitvSet -> collections::BitSet
2015-02-22 10:31:49 +01:00
Michael Gehring
b6ff2aeeae
collections::RingBuf -> collections::VecDeque
2015-02-22 10:29:28 +01:00
Michael Gehring
80f9ef08d2
various integer type changes
2015-02-22 10:27:16 +01:00
Michael Gehring
09b1162912
CString::as_slice_with_nul -> CString::as_bytes_with_nul
2015-02-22 10:06:26 +01:00
Michael Gehring
e78900e56a
new plugin attribute syntax
2015-02-13 16:45:01 +01:00
Michael Gehring
7c617f524b
Fix closure syntax
2015-02-07 10:15:16 +01:00
Michael Gehring
d3ff46d0c7
Drop deprecated 'libc' feature flag
2015-02-06 14:10:07 +01:00
Michael Gehring
8021b491f6
fmt: iter::Peekable changes
2015-02-06 14:10:07 +01:00
Michael Gehring
5e70473a2b
std::path -> std::old_path
2015-02-06 13:45:45 +01:00
Michael Gehring
25232c3697
Fix warnings
2015-02-03 23:59:48 +01:00
Michael Gehring
3eb5a814a3
Fix most unstable feature warnings
2015-02-03 23:54:37 +01:00
Michael Gehring
db8506532e
derive(Show) -> derive(Debug)
2015-02-03 22:42:36 +01:00
Michael Gehring
d89d9ca73b
Various functions in std::str return Result instead of Option now
2015-02-03 22:32:30 +01:00
Alex Lyon
9c0ed7236c
Merge pull request #517 from keunwoo/keunwoo-fix-address-radix-20150127
...
od: fix --address-radix interpretation and minor cleanups
2015-02-01 12:13:37 -08:00
Michael Gehring
906d3e4ec5
write -> write_all
2015-01-29 08:47:43 +01:00
Michael Gehring
d187dc574b
std::io -> std::old_io
2015-01-29 08:45:37 +01:00
Keunwoo Lee
f6a07663e8
od: proper interpretation of -A flag
...
Prior to this CL, --address-radix was being used to determine the format
of the output bytes. This was wrong: this flag controls the printing of
the address (in the POSIX spec for od, this is called the "input offset
base"), not the printing of the content bytes.
2015-01-27 21:51:28 -08:00
Keunwoo Lee
55be34a2c4
od: clean up fname usage
...
+ rm superfluous clone
+ rm superfluous mut variable
2015-01-27 21:51:28 -08:00
Keunwoo Lee
71bc68a987
od: rm -v alias for --version
...
This shortflag conflicts with --output-duplicates.
2015-01-27 21:51:28 -08:00
Keunwoo Lee
b756a57345
od: clean up parse_radix code and use site
...
+ Make parse_radix terser and clearer.
+ Make purpose of radix clearer at use site
(note that the code currently completely misuses the --address-radix
flag; this is inherited from the previous code)
+ Don't panic! inside parse_radix; instead return Result<> and let the
caller handle errors (currently we panic, but probably we'll want to use
some less alarming error routine); this will be more testable later as
well.
2015-01-27 21:51:28 -08:00
Alex Lyon
2f0d8c89c9
Merge pull request #515 from keunwoo/merge-benhirsch-od-20150125
...
Merge benhirsch24 work on od
2015-01-27 21:24:42 -08:00
Keunwoo Lee
288179be49
address Arcterus comments on uutils/coreutils PR 515
...
Mostly style things.
2015-01-27 19:32:26 -08:00
dokaptur
fecc81f270
stdbuf - fix issue 512
2015-01-25 15:06:41 +01:00
Alex Lyon
333e58283f
Merge pull request #509 from Stebalien/cleanup-wc
...
Cleanup wc
2015-01-25 00:27:31 -08:00
Keunwoo Lee
1954274700
od: fix warnings
2015-01-25 00:17:38 -08:00
Alex Lyon
80d79d6053
Merge pull request #508 from Stebalien/cleanup-sync
...
Cleanup sync.
2015-01-25 00:12:35 -08:00
Alex Lyon
5766a0f6eb
Merge pull request #507 from Stebalien/cleanup-cat
...
Cleanup cat
2015-01-25 00:10:07 -08:00
Keunwoo Lee
a6e5deaa16
od: whitespace fix (4-space indents, 99-column)
2015-01-25 00:03:14 -08:00
Alex Lyon
bfc6d2e288
Merge pull request #469 from dokaptur/stdbuf
...
stdbuf - basic version
2015-01-25 00:02:43 -08:00
Keunwoo Lee
2d8e7f6dec
od: fix build
...
Just the minimal stuff needed to make od build again. I have restrained
myself from making more invasive changes.
2015-01-24 23:56:10 -08:00
Steven Allen
03312d0bb1
Cleanup wc.
...
* Avoid cloning.
* Use slicing syntax.
* Use while let.
* Misc cleanup.
2015-01-25 02:29:06 -05:00
Steven Allen
be117de7e7
wc: reset current_char_count after each line.
2015-01-25 02:20:08 -05:00
Keunwoo Lee
3739c82c95
mv od/ -> src/
2015-01-24 23:16:13 -08:00
Steven Allen
903bb00189
Cleanup sync.
...
* Use slicing syntax.
* Don't unnecessarily use the match binding syntax.
2015-01-25 01:46:55 -05:00
Steven Allen
7647a37bf8
Cleanup cat: use slicing syntax.
2015-01-25 01:21:31 -05:00
Steven Allen
8a101b2203
Cleanup cat: use while let instead of loop then match.
2015-01-24 22:53:27 -05:00
Steven Allen
9326dbc3de
Cleanup cat: open files in for loop header.
2015-01-24 22:52:40 -05:00
Steven Allen
e7f80e9826
Cleanup yes
...
Mostly avoid copying where not needed.
2015-01-24 22:42:16 -05:00
dokaptur
ec4182fcf1
stdbuf - install multicall
2015-01-25 00:39:30 +01:00
dokaptur
b71df2fd78
prepare_libs in Makefile
2015-01-25 00:39:30 +01:00
dokaptur
563c9ab34e
preloading improvement
2015-01-25 00:39:06 +01:00
dokaptur
32259aadda
basic version 1
2015-01-25 00:38:20 +01:00
Heather
6c897dc76c
Merge pull request #504 from ebfe/slice
...
Replace deprecated slice_{to,from} with slicing syntax
2015-01-24 18:47:46 +03:00
Michael Gehring
fbdf04c072
Replace deprecated slice_{to,from} with slicing syntax
2015-01-24 10:46:28 +01:00
Michael Gehring
78408fda78
sort: fix build
2015-01-24 09:50:33 +01:00
Michael Gehring
cb1dd390bb
base64, cp: fix build
2015-01-24 03:56:37 +01:00
Tom Genco
406735e6f2
uname: change trim_left() to trim()
...
Otherwise all options have a space at the end, causing a warning in grml zsh config, and who knows what else.
2015-01-13 15:04:21 -07:00
Haitao Li
a6750e90a7
Implement readlink
...
Fixes #111
2015-01-13 22:21:23 +11:00
Arcterus
41cc268df8
Make dependency info usable for test, sync, true, and false
2015-01-10 13:00:15 -08:00
Michael Gehring
58bd009a9e
Remove unused imports
2015-01-10 20:44:57 +01:00
Michael Gehring
6aef8cc38c
Don't link to regex_macros
2015-01-10 20:44:56 +01:00
Michael Gehring
4d6cbfa393
Disable unstable warnings for now
2015-01-10 20:44:56 +01:00
Arcterus
e142b4f23e
env, expand, fmt: fix build
2015-01-10 20:40:38 +01:00
Michael Gehring
8e430d6952
nl: fix build
2015-01-10 20:40:38 +01:00
Michael Gehring
782fad4667
int/uint -> isize/usize
2015-01-10 20:40:37 +01:00
Michael Gehring
cc854698d7
relpath, tee, split, unexpand: fix build
2015-01-10 20:40:37 +01:00
Michael Gehring
8d889fc5c9
uptime, users, whoami: fix build
2015-01-10 20:40:37 +01:00
Michael Gehring
8cd7295a19
test, tr, tsort: fix build
2015-01-10 20:40:37 +01:00
Michael Gehring
fecd3433cb
id, nice, nohup: fix build
2015-01-10 16:54:45 +01:00
Michael Gehring
f2d49f4bb6
Make uumain return isize everywhere
2015-01-10 14:07:39 +01:00
Michael Gehring
c223e28fac
uniq, wc: fix build
2015-01-10 13:49:40 +01:00
Michael Gehring
7860ef275c
sort, sum tac: fix build
2015-01-10 13:49:18 +01:00
Michael Gehring
5402e69923
mkfifo, paste, shuf: fix build
2015-01-10 13:48:42 +01:00
Michael Gehring
c62bacb9fa
hashsum: fix build
2015-01-10 13:18:15 +01:00
Arcterus
a12fd89cb2
chmod, chroot, comm: fix build
2015-01-09 16:51:51 -08:00
Arcterus
4e0360c495
base64, cat: fix build for Rust alpha
2015-01-09 16:16:05 -08:00
Michael Gehring
b50a2639a9
base64, du, realpath: fix build
2015-01-10 00:13:16 +01:00
Michael Gehring
cb87309e92
cut: fix build
2015-01-09 14:09:12 +01:00
Michael Gehring
0a757b957f
Partially fixed build with rust master
...
String::from_raw_buf removal
Deprecated closure syntax
cmp::Ord -> cmp::Ordering
Vec::from_{elem,fn} removal
rand::TaskRng -> rand::ThreadRng
PtrExt::is_not_null removal
to_c_str removal
2015-01-09 09:41:49 +01:00
Michael Gehring
9aef41b8f6
<< precedence
2015-01-08 14:50:03 +01:00
Michael Gehring
f580275ef8
s/mod/self/ in imports
2015-01-08 14:50:03 +01:00
Michael Gehring
48f129ea49
std::char::UnicodeChar removal
2015-01-08 14:50:03 +01:00
Michael Gehring
b8a96da278
into_string -> to_string
2015-01-08 14:50:03 +01:00
Michael Gehring
fd69e7fa4a
str::from_str removal/changes
2015-01-08 14:50:03 +01:00
Michael Gehring
7d8053561e
Use new array syntax
2015-01-08 14:50:03 +01:00
Michael Gehring
074a58eafd
deriving is now called derive
2015-01-08 14:50:03 +01:00
Michael Gehring
1b381f49fa
Use new macro feature flags/attributes
2015-01-08 14:50:02 +01:00
Timofey Misarenkov
59710d5ff8
NULL-pointer check.
2015-01-08 00:32:30 +03:00
Michal Piekarz
61c2086310
Added verbose for split - prints created file name
2015-01-04 23:33:32 +01:00
Michal Piekarz
93c3f02600
C flag for split
2015-01-04 23:33:32 +01:00
Michal Piekarz
7945e3d51c
Removed deprecated calls.
2015-01-04 23:33:32 +01:00
Michal Piekarz
dbd1d34ba3
Added SIZE multiplier suffixes.
2015-01-04 23:33:32 +01:00
Stephan Jaensch
605c107258
Fix deprecation warnings with latest rust nightly
...
- from_str() -> parse()
- into_string() -> to_owned()
2015-01-01 12:14:28 +01:00