Jian Zeng
9b3fadff64
Merge pull request #953 from pthariensflame/fix/shellcheck
...
Make installation more robust
2016-08-09 10:25:22 +08:00
Jian Zeng
a681f1bf9c
Merge pull request #952 from nathanross/cut-impl-zero-terminated
...
cut: implement zero-terminated option
2016-08-09 10:22:56 +08:00
Alexander Ronald Altman
9394b9da08
Make installation more robust
...
This fixes a few problems I was having with installing on Mac.
2016-08-08 18:51:24 -07:00
Nathan Ross
ffb801c893
tests/basename: use chaining for brevity and consistency
2016-08-08 21:12:58 -04:00
Nathan Ross
5aaff02195
cut: implement zero-terminated option
...
no changes to char mode because removal
of specialized char mode behavior is pending
2016-08-08 20:15:53 -04:00
mpkh
3618d9df94
Merge pull request #951 from nathanross/message-templates
...
Add Message templates
2016-08-08 14:34:56 +04:00
Nathan Ross
1bf2c82520
arch: use message templates for consistent, original-work error handling
2016-08-08 04:36:33 -04:00
Nathan Ross
d56389aca0
cut: use message templates for consistent error UX
2016-08-08 04:32:48 -04:00
Nathan Ross
3eb9bbf4b5
uucore: CoreOptions error and version message templates
2016-08-08 04:29:11 -04:00
Nathan Ross
c91fd51197
uucore: add message templates
2016-08-08 03:05:36 -04:00
mpkh
c48f6cefc6
Merge pull request #950 from nathanross/cut-original-help-and-usage
...
cut: provide original-work help message and option descriptions
2016-08-08 10:55:10 +04:00
Nathan Ross
fae1e92767
tests/common: more communicative assertion failure messages
...
often when stdout is wrong, differences in stderr are
more useful for determining the cause
2016-08-08 02:54:22 -04:00
Nathan Ross
ea6b0e55ad
cut: provide original-work help message and option descriptions
2016-08-07 23:16:15 -04:00
Nathan Ross
77bd2887c2
Merge pull request #948 from pthariensflame/patch-1
...
Allow choice of `install` program
2016-08-07 22:10:10 -04:00
Alexander Altman
1543199b50
Allow choice of install
program
...
This permits the use of, *e.g.*, `ginstall` or `uu-install`.
2016-08-07 18:46:43 -07:00
Nathan Ross
1880c46acd
Merge pull request #946 from ChrisNikkel/feature/zero_terminated
...
uniq: add -z option to allow for zero terminated input and output
2016-08-06 22:49:10 -04:00
Chris Nikkel
cdfdc3a2bd
uniq: add command line option -z for zero terminated input and output
2016-08-06 18:41:47 -07:00
Chris Nikkel
c0b2da7c01
uniq: add test for zero terminated input and output
2016-08-06 18:41:39 -07:00
mpkh
b290ab2ca5
Merge pull request #944 from nathanross/tests-cut-incr-feature-coverage
...
tests/cut: positive testcases for feature complete
2016-08-07 02:06:52 +04:00
Nathan Ross
cb6f84e3d8
tests/cut: positive testcases for feature complete
2016-08-06 17:11:54 -04:00
Jian Zeng
7ff57d6b66
Merge pull request #942 from nathanross/fix-appveyor
...
ci: fix appveyor cargo test call
2016-08-07 02:28:58 +08:00
Jian Zeng
8cb6b141f1
Update README
2016-08-07 02:02:52 +08:00
Nathan Ross
3048b5d551
ci: fix appveyor cargo test call
2016-08-06 13:52:57 -04:00
mpkh
b85b8dc18c
Merge pull request #940 from knight42/cleanup-tests
...
Cleanup tests
2016-08-06 21:51:30 +04:00
Knight
a23f1a13e7
Remove useless crates
2016-08-07 01:23:49 +08:00
Knight
cfc28ebc05
tests: extern crates in separated test modules
2016-08-07 01:12:19 +08:00
Nathan Ross
2eeb7b77cc
Merge pull request #939 from knight42/base32
...
Implement base32 & unify base64
2016-08-06 13:03:48 -04:00
Knight
0d48744c0f
base64: simplified
2016-08-07 00:41:53 +08:00
Knight
b0097d0565
base32: add tests
2016-08-07 00:41:53 +08:00
Knight
9c7ff133dc
base32: implemented
2016-08-07 00:41:52 +08:00
Knight
276d2ccd53
uucore: add module encoding
2016-08-07 00:41:52 +08:00
Knight
7c5416799e
base32: add entries
2016-08-06 11:45:03 +08:00
Jian Zeng
5c97e652a0
Merge pull request #938 from frewsxcv/warnings
...
Address a few warnings.
2016-08-05 21:36:24 +08:00
Corey Farwell
01da600f71
Remove unused variable binding.
2016-08-05 09:06:39 -04:00
Corey Farwell
8fe3eac087
Remove unused imports.
2016-08-05 09:05:12 -04:00
Nathan Ross
6bae2688f3
Merge pull request #937 from frewsxcv/refactor-timeout
...
Cleanup logic around `timeout` exit status handling.
2016-08-04 22:42:05 -04:00
Corey Farwell
eca7543c61
Cleanup logic around wait_or_timeout
exit status handling.
2016-08-04 21:30:50 -04:00
Nathan Ross
a8f5b430df
Merge pull request #935 from frewsxcv/refactor-time
...
Prefer handling `Duration` over `f32` when dealing with times.
2016-08-04 21:17:38 -04:00
Nathan Ross
c2fa190705
Merge pull request #936 from frewsxcv/pink
...
Add missing pinky entry in Cargo.lock.
2016-08-04 20:58:11 -04:00
Corey Farwell
3e6a560b9c
Add missing pinky entry in Cargo.lock.
2016-08-04 19:47:50 -04:00
Corey Farwell
99fda0b716
Prefer handling Duration
over f32
when dealing with times.
...
Also refactored out usage of the `time` crate in `uucore`.
2016-08-04 19:21:30 -04:00
Jian Zeng
57a596ee8a
Merge pull request #934 from knight42/fix-pinky
...
Update uucore::utmpx
2016-08-05 00:01:56 +08:00
Knight
d4ac9f22fc
uptime & users: move functions extern to uucore::utmpx
2016-08-04 23:39:30 +08:00
Knight
833d50e192
pinky: obtain correct timestamp
2016-08-04 23:39:30 +08:00
Knight
0020d5c80c
uucore: update utmpx
2016-08-04 22:37:54 +08:00
Knight
c0a9e1f0eb
Fix #842
2016-08-04 21:27:32 +08:00
mpkh
97fcf9026c
Merge pull request #933 from frewsxcv/timeout
...
Use `setpgid` from libc.
2016-08-04 16:56:46 +04:00
Corey Farwell
160f7ed5f4
Use setpgid
from libc.
2016-08-04 08:34:33 -04:00
Nathan Ross
63c17e5b42
Merge pull request #932 from alsuren/sort--stable
...
implement sort --stable
2016-08-03 06:52:39 -04:00
David Laban
6751d2c708
implement sort --stable
...
Made a new function sort_by(lines, compare_fns), which accepts a
list of compare_fns and calls lines.sort_by() with a closure that
calls each compare_fn in turn until one returns something other
than equal.
Default behavior ensures that String::cmp is the last element in the
compare_fns list (referred to as 'last resort' sorting by man sort).
Passing --stable (-s) turns this behaviour off.
Test cases provided for `sort --month` and `sort --month --stable`.
2016-08-03 07:56:40 +01:00