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
mpkh
57f730a9eb
Merge pull request #929 from nathanross/test-of
...
tests: refactor conventional TestScenario usage
2016-08-02 15:04:41 +04:00
Nathan Ross
569cd162d3
tests: refactor conventional TestScenario usage
...
Updates to individual integration tests
- use proposed conventional approach to beginning tests
- use new convenience functions for using fixtures
- use new names for TestScenario
Updates to integration test modules
- add proposed conventional module-level functions
Updates to test/common/util.rs
- rename TestSet, and its methods, for semantic clarity
- create convenience functions for use of fixtures
- delete convenience functions obsoleted by new conventions
2016-08-01 13:42:00 -04:00
mpkh
d7a053305c
Merge pull request #928 from knight42/patch
...
Minor changes
2016-07-31 23:23:05 +04:00
Knight
f13d1dc4ce
README: correct TODO
2016-08-01 01:23:17 +08:00
Knight
ac41495acd
Compile test program only once
2016-08-01 01:02:41 +08:00
mpkh
bb1e0540a3
Merge pull request #926 from pokeylope/ls-improvements
...
ls improvments
2016-07-29 18:36:14 +04:00
Mark Karasek
59ad388cce
ls: remove dependence on nightly
2016-07-29 07:07:38 -07:00
mpkh
5cd6bcf2a8
Merge pull request #927 from knight42/ci
...
Improve CI
2016-07-29 17:44:07 +04:00
Knight
5ef26aad1c
stat: remove warning in test
2016-07-29 21:19:52 +08:00
Knight
7a152248aa
CI: add nightly features
2016-07-29 21:06:52 +08:00
Knight
68631e555f
Fix windows build
2016-07-29 20:49:08 +08:00
Mark Karasek
900cd41eb6
ls improvments
...
* Add options -c, -F, -L, -l, -r, -R, -S, -t, -U, --color
* Fix options -a, -A
* Remove unused options
* Output in columns when not using -l
* Output date with -l
2016-07-28 17:41:52 -07:00
mpkh
6b7254fc63
Merge pull request #925 from BourgondAries/master
...
ls: ls: Implement the '-a' (all) flag
2016-07-27 15:10:35 +04:00
Kevin Robert Stravers
5226ba963c
ls: Implement the '-a' (all) flag
...
The all flag did not cull/remove the directory entries starting with a
dot. The help message indicates it should. The implementation checks
if the string starts with a dot whilst also using '-a' to determine
whether a DirEntry is to be printed.
2016-07-27 11:29:27 +02:00
mpkh
6530057851
Merge pull request #924 from BourgondAries/master
...
ls: Show columns correctly padded according to the largest file and the largest symlink count
2016-07-26 23:02:11 +04:00
Kevin Robert Stravers
0afe9b347e
ls: Show columns correctly padded according to the largest file and the largest symlink count
2016-07-26 16:05:20 +02:00
mpkh
da0de488e6
Merge pull request #913 from knight42/pinky
...
Implement pinky
2016-07-26 13:38:53 +04:00
Knight
be20d8605d
pinky: add tests
2016-07-26 17:26:22 +08:00
Knight
6fff3a7665
pinky: cleanup the code
2016-07-26 16:44:30 +08:00
Knight
e0c950e145
pinky: canonicalize host
2016-07-26 16:44:30 +08:00
Knight
f91c60ff70
pinky: fix a weird bug:
...
Strings passed to C functions must ends with NULL.
2016-07-26 16:44:30 +08:00
Knight
048daee8b9
pinky: make ci happy
2016-07-26 16:44:30 +08:00
Knight
fe952d90d8
pinky: iterate over utmp structs using getutxent()
2016-07-26 16:44:29 +08:00
Knight
1056542dd3
uucore::utmpx: revert the changes
2016-07-26 16:44:29 +08:00
Knight
3ed49033b7
pinky: implement short format
2016-07-26 16:44:25 +08:00
Knight
7fb3eef5e5
pinky: implement long format
2016-07-26 16:44:25 +08:00
Knight
50fcfac5d1
pinky: Add entries
2016-07-26 16:44:25 +08:00
mpkh
67fcfb02ea
Merge pull request #923 from king6cong/tail-dir-fix
...
skip directory tail
2016-07-23 22:28:01 +04:00
king6cong
ff7d2bae16
skip directory tail
2016-07-23 23:03:00 +08:00
mpkh
1c0114b1b2
Merge pull request #921 from nathanross/tests-minor-cleanup
...
Tests: minor refactor for dryness of base64 and cat tests
2016-07-17 22:04:40 +04:00
mpkh
94b3d8a992
Merge pull request #920 from nathanross/tests-common-util-idiomatic-asserts
...
tests/common: use more idiomatic asserts
2016-07-17 21:58:47 +04:00
Nathan Ross
be22cf2e20
tests: cat minor refactor for dryness
2016-07-17 13:39:57 -04:00