Commit graph

2094 commits

Author SHA1 Message Date
Joseph Crail
678a3d1451 sort: fix flag for human numeric sort 2016-03-25 16:55:50 -04:00
Joseph Crail
6488f168fb sort: refactor settings into dedicated struct 2016-03-25 16:51:39 -04:00
Heather
9c477a9ca8 Merge pull request #843 from llogiq/clippy
fix two clippy warnings
2016-03-24 15:38:45 +04:00
Andre Bogus
986c00cd91 fix two clippy warnings 2016-03-24 12:15:01 +01:00
Heather
e382ee637b Merge pull request #840 from ebfe/travis
travis: build/test everything on stable
2016-03-23 17:20:54 +04:00
Michael Gehring
1183dcd7a1 travis: build/test everything on stable 2016-03-23 13:15:36 +01:00
Heather
2d07ec7a58 Merge pull request #839 from Shiroy/uucore_lib_name
Add missing lib.name for uucore
2016-03-23 15:25:58 +04:00
Shiroy
c8ff895018 Add missing lib.name for uucore
Fix build on Linux
2016-03-23 08:44:09 +01:00
Alex Lyon
94b8f9fe37 Merge pull request #836 from jamwt/fix_sleep
Fix sleep duration calculations.
2016-03-22 18:00:18 -07:00
Joseph Crail
9e500532d0 Merge pull request #837 from skade/move_to_stable
Move to stable
2016-03-22 20:47:41 -04:00
Florian Gilcher
d75cb627c9 Remove nightly note 2016-03-22 22:03:16 +01:00
Florian Gilcher
0be3e61d9f Avoid using char() in tr 2016-03-22 22:03:06 +01:00
Florian Gilcher
2befeef179 Remove use of str_char in fmt 2016-03-22 21:57:52 +01:00
Jamie Turner
7d89717d4b Fix sleep duration calculations.
Durations longer than ~4s were overflowing u32 and just.. not working.
2016-03-22 13:00:01 -07:00
Florian Gilcher
509d6efc78 Remove rustc_unicode dependency 2016-03-22 19:56:14 +01:00
Michael Gehring
6e629b1115 Merge pull request #832 from fitzgen/tail-large-files
Tail large files
2016-03-22 01:57:06 +01:00
Nick Fitzgerald
d7974c56a0 tests/tail: Add a test for tail'ing large files
This tests both large files and iterating backwards through the file when we
need to search backwards further than our BUFFER_SIZE.
2016-03-21 07:51:48 -07:00
Nick Fitzgerald
161f96dc8c tests/tail: Rename tail test fixture contents to be easier to read
The repetition of "foo" and "bar" made for difficult-to-read assertion failures
when hacking on `tail`. I think that having each line have unique contents makes
it a bit easier to parse.
2016-03-21 07:51:42 -07:00
Nick Fitzgerald
56d16ca7e7 tail: Optimize tail for bounded searches in files
When tail'ing a file, we do not need to read the whole file from start to finish
just to find the last n lines or bytes. Instead, we can seek to the end of the
file, and then read the file "backwards" in chunks until we find the location of
the first line/byte we wish to print. This ends up being a nice performance win
for very large files.

Fixes #764
2016-03-21 07:51:38 -07:00
Nick Fitzgerald
977742f209 tail: Take ownership of the provided BufReader<T>
The `BufReader` argument passed to the `fn tail<T: Read>(&mut BufReader<T>,
settings: &settings)` function is never reused, so the `tail` function should
just take ownership of it.
2016-03-21 07:51:32 -07:00
Heather
bbd55b283a Merge pull request #829 from lucaotta/fix-chmod-reference
chmod: fix reference option
2016-03-11 10:37:57 +04:00
Luca Ottaviano
5dc0a55630 chmod: fix reference option
Reference option must have a file path.
Fix C interface using CString.
Better error message if the file doesn't exist.
2016-03-10 20:34:49 +01:00
Heather
8d278913c2 Merge pull request #825 from nathanross/dirname-fix-impl
Dirname: fix windows' failing test for absolute-path behavior (approach 2/2: platform-independent behavior)
2016-03-01 11:55:54 +04:00
Heather
49a67bae33 Merge pull request #828 from cbjadwani/uniq_add_tests
Uniq add tests
2016-02-29 10:50:59 +04:00
Chirag B. Jadwani
d674a3bb63 uniq: minor refactoring in skip_fields 2016-02-29 11:16:58 +05:30
Chirag B. Jadwani
fc5b798ff1 uniq: fix skip & check characters logic 2016-02-29 11:10:38 +05:30
Chirag B. Jadwani
676e3718c3 uniq: add tests 2016-02-29 11:07:16 +05:30
Michael Gehring
68efb303bd Merge pull request #823 from nathanross/comm-additional-tests
comm: remaining tests for feature completion
2016-02-24 08:23:32 +01:00
Nathan Ross
d1e785c1dc comm: additional tests and status/stderr checking for existing tests 2016-02-22 09:59:06 -05:00
Heather
267a7d043a Merge pull request #821 from ebfe/cat-test
tests/cat: --squeeze-blank test
2016-02-22 09:24:32 +04:00
Heather
444775dc7f Merge pull request #827 from ColdPie1/sort_opt_o
sort: Implement -o switch
2016-02-22 09:22:25 +04:00
Andrew Eikum
d25ab4adc1 sort: Implement -o switch 2016-02-21 13:32:42 -06:00
Heather
ac457f076c Merge pull request #826 from nathanross/link-normalize-error-messages
link: normalize file-not-found error message across platforms
2016-02-21 09:52:53 +04:00
Nathan Ross
3e6ac628bc link: normalize file-not-found error message across platforms 2016-02-20 17:32:15 -05:00
Nathan Ross
51d7227aeb dirname: in impl, make behavior for '/' fs root agnostic of host platform 2016-02-19 20:10:41 -05:00
Michael Gehring
396c1642a2 Merge pull request #822 from nathanross/more-ergonomic-testing
more ergonomic testing
2016-02-19 09:08:11 +01:00
Nathan Ross
5e764ecf6e more ergonomic testing 2016-02-18 13:24:36 -05:00
Michael Gehring
c0d91d225f tests/cat: --squeeze-blank test 2016-02-17 08:06:32 +01:00
Michael Gehring
aafd20d565 Merge pull request #820 from nathanross/cat-fix-squeeze-blank
cat: --squeeze-blank keeps up to one blank line
2016-02-17 08:01:02 +01:00
Heather
6b11f6c5fb Merge pull request #819 from nathanross/additional-tests
Base64, Basename: additional tests
2016-02-17 07:48:05 +03:00
Nathan Ross
a4e1372451 cat: squeeze blank keeps up to one blank line 2016-02-16 18:52:51 -05:00
Nathan Ross
e44f29a020 basename: tests for bad inputs 2016-02-16 16:47:09 -05:00
Nathan Ross
8190c30a85 basename: tests for remaining options 2016-02-16 16:47:09 -05:00
Nathan Ross
21cee1556b basename: in tests, assert error-free in usage 2016-02-16 16:47:09 -05:00
Nathan Ross
962fcd7183 base64: tests for incorrect wrap args 2016-02-16 16:47:09 -05:00
Nathan Ross
2bad30b2b0 base64: in tests, test both option forms 2016-02-16 02:20:09 -05:00
Michael Gehring
1c1cf2446e Merge pull request #815 from nathanross/spec-tests
allow feature-gated integration tests for unimplemented functionality
2016-02-16 06:56:32 +01:00
Nathan Ross
e32efaa5a1 allow feature-gated integration tests for unimplemented functionality 2016-02-15 23:48:37 -05:00
Michael Gehring
76cfcba306 Merge pull request #816 from nathanross/minor-fixes
basename: error message for too few or many args messages should go to stderr
2016-02-16 04:00:29 +01:00
Nathan Ross
c8dcdf7d25 basename: too few or many args messages go to stderr 2016-02-15 20:44:50 -05:00