Roy Ivy III
6f75331bf4
mv: expand testing to windows platforms
2019-02-07 07:46:43 -06:00
Alex Lyon
f0aecf4134
Merge pull request #1300 from uutils/dependabot/cargo/aho-corasick-0.6.8
...
Bump aho-corasick from 0.6.5 to 0.6.8
2019-02-07 03:31:27 -08:00
dependabot[bot]
a8c6264023
Bump rand from 0.4.2 to 0.5.5
...
Bumps [rand](https://github.com/rust-lang-nursery/rand ) from 0.4.2 to 0.5.5.
- [Release notes](https://github.com/rust-lang-nursery/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang-nursery/rand/compare/0.4.2...0.5.5 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-07 08:45:30 +00:00
Alex Lyon
2d26f800de
Merge pull request #1302 from uutils/dependabot/cargo/regex-1.0.3
...
Bump regex from 1.0.1 to 1.0.3
2019-02-07 00:42:19 -08:00
Alex Lyon
677953b2b6
Merge pull request #1314 from teresy/shorthand-fields
...
refactor: use shorthand fields
2019-02-07 00:41:00 -08:00
Alex Lyon
313ad332fa
Merge pull request #1290 from ArniDagur/ls-formatting
...
Change `ls -l -h` formatting to match GNU ls
2019-02-07 00:12:43 -08:00
Alex Lyon
8a7442d257
Merge pull request #1312 from E5ten/patch-3
...
Remove unused nlink
2019-02-07 00:08:46 -08:00
Alex Lyon
5a17daa963
Merge pull request #1281 from rivy/alt/win-cli-globbing
...
Add command line globbing to all utilities (for windows targets)
2019-02-06 23:21:53 -08:00
Rijnard van Tonder
436892269f
refactor: use shorthand fields
2018-11-07 13:26:03 -05:00
E5ten
cc8899cb5b
Remove unused nlink
...
Now that --apparent-size does not use stat.nlink * stat.size, nlink is not used anywhere in du and can be removed from what I can see.
2018-10-30 10:49:08 -04:00
Alex Lyon
b8dbefcb71
Merge pull request #1311 from E5ten/patch-2
...
Fix du --apparent-size on ext4 and MacOS
2018-10-29 22:19:15 -07:00
E5ten
13e57616b4
Fix --apparent-size on ext4 and MacOS
...
All credit goes to @JJJollyjim in this PR https://github.com/uutils/coreutils/pull/1294 , but that PR needs to be rebased over master to be mergeable and hasn't been after multiple weeks.
2018-10-29 09:29:48 -04:00
Paul Capron
324cbad7a3
factor: Don’t wrap stdin in BufReader & use lock()
...
stdin() is already buffered.
Locking upfront explicitely avoid the overhead of mutex locking/unlocking
everytime a new line is read. See https://stackoverflow.com/a/17546731
and https://www.reddit.com/r/rust/comments/3rj54u/how_can_i_read_char_by_char_from_stdin/cwpojn1/
The code cannot be simplified to “for line in stdin().lock().lines()”
until non-lexical lifetimes are implemented. The compiler complains at
the moment about a temporary value not living long enough/being dropped
while still borrowed. See https://github.com/rust-lang/rust/issues/33520
This commit is related to issue #1103 .
2018-10-24 15:21:05 +02:00
Paul Capron
bb9cc77858
Don’t wrap stdin in a BufReader when prompting
...
stdin() is already buffered.
stdin().read_line() calls stdin().lock() behind the hood (see
https://doc.rust-lang.org/src/std/io/stdio.rs.html#274 )
Here we are reading user input, prompting them to confirm their action:
it seems useless to handle mutex locking/unlocking explicitely and
beforehand to avoid its overhead.
This commit is related to issue #1103 .
2018-10-24 15:08:51 +02:00
cnd
a673c12694
Merge pull request #1303 from rinconjc/1278
...
tee: handle '-' as filename (POSIX spec) fix #1278
2018-10-19 10:52:40 +04:00
Julio Rincon
4ac2de925d
tee: handle '-' as filename (POSIX spec) fix #1278
2018-10-16 22:10:53 +11:00
dependabot[bot]
c1480472a3
Bump regex from 1.0.1 to 1.0.3
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.0.1...1.0.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-10-15 07:46:09 +00:00
dependabot[bot]
58fa48b619
Bump aho-corasick from 0.6.5 to 0.6.8
...
Bumps [aho-corasick](https://github.com/BurntSushi/aho-corasick ) from 0.6.5 to 0.6.8.
- [Release notes](https://github.com/BurntSushi/aho-corasick/releases )
- [Commits](https://github.com/BurntSushi/aho-corasick/compare/0.6.5...0.6.8 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-10-14 09:36:23 +00:00
dependabot[bot]
a182d3d81d
Bump half from 1.2.0 to 1.3.0
...
Bumps [half](https://github.com/starkat99/half-rs ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/starkat99/half-rs/releases )
- [Changelog](https://github.com/starkat99/half-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/starkat99/half-rs/compare/v1.2.0...v1.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-10-14 09:35:46 +00:00
Vinzent Steinberg
fe21c4b7fd
Update to Rand 0.5 ( #1288 )
...
* factor: Update to Rand 0.5
* shuf: Update to Rand 0.5
* shred: Update to Rand 0.5
* mktemp: Update to Rand 0.5
2018-10-14 13:33:44 +04:00
cnd
1b1751d721
Merge pull request #1297 from E5ten/patch-1
...
Fix -b flag
2018-10-14 13:28:21 +04:00
Roy Ivy III
851f2e5323
fix AppVeyor CI configuration
2018-10-14 00:41:14 -05:00
Roy Ivy III
e5f67765e3
fix Travis CI configuration
2018-10-14 00:41:14 -05:00
Roy Ivy III
9cbf8b5856
maint: reduce CI config file visibility
2018-10-14 00:41:14 -05:00
Roy Ivy III
f56a7d30ba
fix: remove unused parens
2018-10-14 00:41:14 -05:00
Roy Ivy III
c56f8f6807
fix: remove unused 'mut'
2018-10-14 00:41:14 -05:00
Roy Ivy III
16d39cafcc
fix: remove unused imports
2018-10-14 00:41:14 -05:00
Roy Ivy III
a046d94e75
fix: gate unix-only imports
2018-10-14 00:41:14 -05:00
Roy Ivy III
197bd2e10c
fix: gate unix-only macros (silences "unused" warnings)
2018-10-14 00:41:14 -05:00
Roy Ivy III
a66f7a7a53
fix: remove deprecated 'std::ascii::AsciiExt'
2018-10-14 00:41:14 -05:00
Roy Ivy III
cb7a926e9a
maint: turn off cargo autotests to silence warnings
2018-10-14 00:41:14 -05:00
Roy Ivy III
fada9314d7
update rust minimum version to 1.27.0 (includes testing)
2018-10-14 00:41:14 -05:00
E5ten
9ff5d4f1f9
Update du.rs
...
Remove extra parentheses around 1
2018-10-09 21:35:13 -04:00
Alex Lyon
5008b4db2e
Merge pull request #1293 from JJJollyjim/master
...
numfmt: support neither or both of --to and --from
2018-10-09 18:06:49 -07:00
E5ten
4a0f3b31ab
Fix -b flag
...
Fixes #1295 , making -b act like `du --block-size=1 --apparent-size`, the reason it uses `stat.size` instead of `stat.nlink * stat.size` is explained in #1292 and the fix for that issue #1294 is mirrored by the use of `stat.size` here.
2018-09-30 22:24:01 -04:00
cnd
a161b7e803
Merge pull request #1296 from rkuslak/master
...
Fix comparison of empty string to numeric f64 sort
2018-09-30 18:51:07 +04:00
Ron Kuslak
b09ccaf6b1
Fix comparison of empty string to numeric f64 sort
2018-09-30 09:14:18 -05:00
Jamie McClymont
f3a71215bc
numfmt: support neither or both of --to and --from
...
matches GNU behaviour
2018-09-25 01:42:11 +12:00
Alex Lyon
94cd6540ba
Merge pull request #1291 from NoTroop/hostid-enum
...
hostid: remove old enum
2018-09-18 18:43:25 -07:00
Marcus Millin
a19d6d9d7c
hostid: remove old enum
...
Remove old arg parsing enum
2018-09-18 19:48:53 -05:00
Árni Dagur
3367d3d979
Switch to using rust-number-prefix from pretty-bytes
2018-09-18 22:16:34 +00:00
Árni Dagur
9207269791
Change 'ls -l -h' formatting to match GNU ls
...
Before:
-rw-r--r-- 1 arni arni 2.02 kB 2018-09-14 21:07 CONTRIBUTING.md
-rw-r--r-- 1 arni arni 78.75 kB 2018-09-14 23:41 Cargo.lock
-rw-r--r-- 1 arni arni 6.92 kB 2018-09-14 21:07 Cargo.toml
-rw-r--r-- 1 arni arni 1.05 kB 2018-09-14 21:07 LICENSE
-rw-r--r-- 1 arni arni 5.98 kB 2018-09-14 21:07 Makefile
-rw-r--r-- 1 arni arni 10.68 kB 2018-09-14 21:07 README.md
-rw-r--r-- 1 arni arni 2.22 kB 2018-09-14 21:07 appveyor.yml
-rw-r--r-- 1 arni arni 2.9 kB 2018-09-14 21:07 build.rs
-rw-r--r-- 1 arni arni 15 B 2018-09-14 21:07 codecov.yml
drwxr-xr-x 2 arni arni 4.1 kB 2018-09-14 21:07 docs
-rw-r--r-- 1 arni arni 973 B 2018-09-14 21:07 mkmain.rs
drwxr-xr-x 97 arni arni 4.1 kB 2018-09-14 21:07 src
drwxr-xr-x 3 arni arni 4.1 kB 2018-09-14 21:08 target
drwxr-xr-x 4 arni arni 4.1 kB 2018-09-14 21:07 tests
-rw-r--r-- 1 arni arni 48 B 2018-09-14 21:07 uumain.rs
After:
-rw-r--r-- 1 arni arni 2.02K 2018-09-14 21:07 CONTRIBUTING.md
-rw-r--r-- 1 arni arni 78.68K 2018-09-16 20:39 Cargo.lock
-rw-r--r-- 1 arni arni 6.92K 2018-09-14 21:07 Cargo.toml
-rw-r--r-- 1 arni arni 1.05K 2018-09-14 21:07 LICENSE
-rw-r--r-- 1 arni arni 5.98K 2018-09-14 21:07 Makefile
-rw-r--r-- 1 arni arni 10.68K 2018-09-14 21:07 README.md
-rw-r--r-- 1 arni arni 2.22K 2018-09-14 21:07 appveyor.yml
-rw-r--r-- 1 arni arni 2.9K 2018-09-14 21:07 build.rs
-rw-r--r-- 1 arni arni 15 2018-09-14 21:07 codecov.yml
drwxr-xr-x 2 arni arni 4.1K 2018-09-14 21:07 docs
-rw-r--r-- 1 arni arni 973 2018-09-14 21:07 mkmain.rs
drwxr-xr-x 97 arni arni 4.1K 2018-09-14 21:07 src
drwxr-xr-x 3 arni arni 4.1K 2018-09-14 21:08 target
drwxr-xr-x 4 arni arni 4.1K 2018-09-14 21:07 tests
-rw-r--r-- 1 arni arni 48 2018-09-14 21:07 uumain.rs
2018-09-16 20:42:11 +00:00
cnd
1f64d83d6f
Merge pull request #1284 from vks/clippy
...
Misc code clean up
2018-09-05 10:43:51 +04:00
cnd
35b1e47a63
Merge pull request #1285 from arsdragonfly/master
...
numfmt: add suffixes and fix negative numbers
2018-09-05 10:39:26 +04:00
Zheyu Shen
1af0484360
numfmt: add suffixes and fix negative numbers
...
Also refactors the code.
2018-09-04 18:27:21 -04:00
Vinzent Steinberg
bc78bcac7d
Remove utf8 feature
...
All code it provides can be implemented with `std`.
2018-09-04 14:49:27 +02:00
Vinzent Steinberg
e46e3594d2
Fix more clippy warnings and remove redundant 'static
2018-09-04 14:33:36 +02:00
cnd
48745ec5ee
Merge pull request #1283 from xplorld/fix/sort-numeric-nan
...
sort: treat "NaN" as string in numeric sort
2018-09-04 10:14:27 +04:00
xplorld
47f5f12759
sort: treat "NaN" as string in numeric sort
2018-09-03 22:28:18 -07:00
Vinzent Steinberg
4034a322a2
Fix a few clippy warnings
2018-09-03 19:08:23 +02:00