Roy Ivy III
37a3db1819
refactor/polish ~ fix cargo clippy
complaints (flat_map_identity)
2020-01-27 22:35:26 -06:00
Roy Ivy III
bffea950d9
refactor/polish ~ fix cargo clippy
complaints (zero_ptr)
2020-01-27 22:35:26 -06:00
Roy Ivy III
248dfbac08
refactor/polish ~ fix cargo clippy
complaints (comparison_chain)
2020-01-27 22:35:16 -06:00
Roy Ivy III
2ef9c9a28e
refactor/polish ~ fix cargo clippy
complaints (unnecessary_unwrap)
2020-01-27 21:33:53 -06:00
Roy Ivy III
7cc3571657
refactor/polish ~ fix cargo clippy
complaints (remove unit value as function arg)
2020-01-27 21:33:53 -06:00
Roy Ivy III
8ec50b72d1
refactor/polish ~ fix cargo clippy
complaints (inefficient to_string()
)
2020-01-27 21:33:53 -06:00
Roy Ivy III
334406028c
refactor/polish ~ fix cargo clippy
complaints (remove useless lint attribute)
2020-01-27 21:33:53 -06:00
Roy Ivy III
aa2ed76846
refactor/polish ~ fix cargo clippy
complaints (unneeded transmute)
2020-01-27 21:33:53 -06:00
Roy Ivy III
f933c60a41
refactor/polish ~ fix cargo clippy
complaints (filter_map => filter)
2020-01-27 21:33:53 -06:00
Roy Ivy III
de9d702a32
refactor/polish ~ fix cargo clippy
complaints (use enumerate)
2020-01-27 21:33:53 -06:00
Roy Ivy III
33e5d8c813
refactor/polish ~ fix cargo clippy
complaints (into_iter => iter)
2020-01-27 21:33:53 -06:00
Roy Ivy III
d343d533ba
refactor/polish ~ fix cargo clippy
complaints (avoid as ...
)
2020-01-27 21:33:53 -06:00
Roy Ivy III
66124454e3
refactor/polish ~ fix cargo clippy
complaints (remove ->()
)
2020-01-27 21:33:53 -06:00
Roy Ivy III
55b3e4ea24
refactor/polish ~ fix cargo clippy
complaints (simplify enum element names/NumberMode)
2020-01-27 21:33:53 -06:00
Roy Ivy III
82dc40f0af
refactor/polish ~ fix cargo clippy
complaints (simplify enum element names/InteractiveMode)
2020-01-27 21:33:52 -06:00
Roy Ivy III
fd8e5acd57
refactor/polish ~ fix cargo clippy
complaints (loop/match => while let)
2020-01-27 21:33:52 -06:00
Roy Ivy III
98039f176d
refactor/polish ~ fix cargo clippy
complaints (String => str)
2020-01-27 21:33:52 -06:00
Roy Ivy III
3bddf84aec
refactor/polish ~ fix cargo clippy
complaints (match => if let)
2020-01-27 21:33:52 -06:00
Roy Ivy III
600c40490b
refactor/polish ~ fix cargo clippy
complaints (map => if let)
2020-01-27 21:33:52 -06:00
Roy Ivy III
739c2d5793
refactor/polish ~ fix cargo clippy
complaints (use is_ok)
2020-01-27 21:33:52 -06:00
Roy Ivy III
8b18b7c206
refactor/polish ~ fix cargo clippy
complaints (use is_null)
2020-01-27 21:33:52 -06:00
Roy Ivy III
bb15dcf1b8
refactor/polish ~ fix cargo clippy
complaints (use is_empty / is_none)
2020-01-27 21:33:52 -06:00
Roy Ivy III
2931c808b6
refactor/polish ~ fix cargo clippy
complaints (collapse equal if blocks)
2020-01-27 21:33:52 -06:00
Roy Ivy III
b003d55fe1
refactor/polish ~ fix cargo clippy
complaints (collapse if-if)
2020-01-27 21:33:52 -06:00
Roy Ivy III
b8eb763e43
refactor/polish ~ fix cargo clippy
complaints (collapse else-if)
2020-01-27 21:33:52 -06:00
Roy Ivy III
2db6fb20c9
refactor/polish ~ fix cargo clippy
complaints (needless_lifetimes)
2020-01-27 21:33:51 -06:00
Roy Ivy III
8c97f0eebb
refactor/polish ~ fix cargo clippy
complaints ('better' match indirection)
2020-01-27 21:33:51 -06:00
Roy Ivy III
ab87a1ab5f
refactor/polish ~ fix cargo clippy
complaints ('better' ref indirection)
2020-01-27 21:33:51 -06:00
Roy Ivy III
94c088f452
refactor/polish ~ fix cargo clippy
complaints (redundant return variable)
2020-01-27 21:33:51 -06:00
Roy Ivy III
88a45a157b
refactor/polish ~ fix cargo clippy
complaints (redundant return)
2020-01-27 21:33:51 -06:00
Roy Ivy III
564168ccfc
refactor/polish ~ fix cargo clippy
complaints (redundant clone)
2020-01-27 21:33:51 -06:00
Roy Ivy III
2e90c78fae
refactor/polish ~ fix cargo clippy
complaints (redundant closure)
2020-01-27 21:33:51 -06:00
Roy Ivy III
fa8540cb15
refactor/polish ~ fix cargo clippy
complaints (DRY struct def)
2020-01-27 21:33:51 -06:00
Roy Ivy III
ea8ed8d5da
refactor/polish ~ fix cargo clippy
complaints (&Vec => &[])
2020-01-27 21:33:50 -06:00
Roy Ivy III
a72422fb0e
refactor/polish ~ fix cargo clippy
complaints (Vec<> => [])
2020-01-27 21:33:50 -06:00
Roy Ivy III
ec5ca193ac
refactor/polish ~ fix cargo clippy
complaints (char not string)
2020-01-27 21:33:50 -06:00
Roy Ivy III
11d68d3e51
refactor/polish ~ fix cargo clippy
complaints (number readability)
2020-01-27 21:33:50 -06:00
Roy Ivy III
3da2a69e11
refactor/polish ~ fix cargo clippy
complaints (unneeded String::from
)
2020-01-27 21:33:50 -06:00
Roy Ivy III
bf6368269c
refactor/polish ~ fix cargo clippy
complaints (unneeded parens)
2020-01-27 21:33:50 -06:00
Roy Ivy III
1216378c72
refactor/polish ~ fix cargo clippy
complaints (unneeded ref for copiable)
2020-01-27 21:33:50 -06:00
Roy Ivy III
bc558f301a
refactor/polish ~ fix cargo clippy
complaints (unneeded mut
)
2020-01-27 21:33:50 -06:00
Roy Ivy III
25b1f98cf8
refactor/polish ~ fix cargo clippy
complaints (unneeded format
)
2020-01-27 21:33:50 -06:00
Roy Ivy III
3bff70967c
refactor/polish ~ fix cargo clippy
complaints (use starts_with()
)
2020-01-27 21:33:50 -06:00
Roy Ivy III
e676447b3d
refactor/polish ~ fix cargo clippy
complaints (while let ... = some
=> for ... in
)
2020-01-27 21:33:49 -06:00
Roy Ivy III
8142ecf325
refactor/polish ~ fix cargo clippy
complaints (default/tests => let ... = if ...
)
2020-01-27 21:33:49 -06:00
Roy Ivy III
d192ebea5b
refactor/polish ~ fix cargo clippy
complaints (unwrap_or_else)
2020-01-27 21:33:49 -06:00
Roy Ivy III
4ddc65f255
refactor/polish ~ fix cargo clippy
complaints (String => str)
2020-01-27 21:33:49 -06:00
Roy Ivy III
2d95cfdcbd
refactor/polish ~ fix cargo clippy
complaints (remove allow unused_must_use)
2020-01-27 21:33:49 -06:00
Roy Ivy III
90a64a831a
refactor/polish ~ fix cargo clippy
complaints (for in => iter.take)
2020-01-27 21:33:49 -06:00
Roy Ivy III
1642933275
refactor/polish ~ fix cargo clippy
complaints (if is_none => as_ref()?)
2020-01-27 21:33:49 -06:00
Roy Ivy III
88db11a328
refactor/polish ~ fix cargo clippy
complaints (negation instead of * -1)
2020-01-27 21:33:49 -06:00
Roy Ivy III
3c2e609bfe
refactor/polish ~ fix cargo clippy
complaints (use values()
)
2020-01-27 21:33:49 -06:00
Roy Ivy III
c6e9808224
refactor/polish ~ fix cargo clippy
complaints (match function signatures)
2020-01-27 21:33:49 -06:00
Roy Ivy III
c6817aefb3
refactor/polish ~ fix cargo clippy
complaints (or_else)
2020-01-27 21:33:49 -06:00
Roy Ivy III
413c64fa12
refactor/polish ~ fix cargo clippy
complaints ('better' as println!()
)
2020-01-27 21:33:48 -06:00
Roy Ivy III
291d2f5d48
refactor/polish ~ fix cargo clippy
complaints ('better' as println!(...)
)
2020-01-27 21:33:48 -06:00
Roy Ivy III
ba5a2435be
refactor/polish ~ fix cargo clippy
complaints (unneeded _
)
2020-01-27 21:33:48 -06:00
Roy Ivy III
493f5f1496
refactor/polish ~ fix cargo clippy
complaints (use +=
/-=
notation)
2020-01-27 21:33:48 -06:00
Roy Ivy III
768ed71725
refactor/polish ~ fix cargo clippy
complaints (use b'...' notation)
2020-01-27 21:33:48 -06:00
Roy Ivy III
b276f4758f
refactor/polish ~ fix cargo clippy
complaints (iter.collect => to_vec)
2020-01-27 21:33:48 -06:00
Roy Ivy III
a9b1a03b37
refactor/polish ~ fix cargo clippy
complaints (fatal/write_all)
2020-01-27 21:33:48 -06:00
Roy Ivy III
662db61336
refactor/polish ~ fix cargo clippy
complaints (fatal/unneeded drop)
2020-01-27 21:33:48 -06:00
Roy Ivy III
181c9d6cae
refactor/polish ~ fix cargo clippy
complaints (fatal/unneeded clone)
2020-01-27 21:33:48 -06:00
Roy Ivy III
6043ac1cbd
refactor/polish ~ fix cargo clippy
complaints (fatal/temporary_cstring_as_ptr)
2020-01-27 21:33:48 -06:00
Roy Ivy III
1f5749e304
refactor/polish ~ fix cargo clippy
complaints (fatal/same if clause)
2020-01-27 21:33:48 -06:00
Roy Ivy III
1f137c245f
refactor/polish ~ fix cargo clippy
complaints (fatal/cast_ptr_alignment)
2020-01-27 21:33:47 -06:00
Roy Ivy III
c969becbf8
refactor ~ remove unneeded mem::uninitialized() code
...
.# [why]
`mem::ununitialized()` is deprecated as of rust v1.39.0.
And this use is likely a premature optimization attempting to avoid
initializing the byte array to 0, which is usually a *very* fast operation.
* ref: <https://github.com/rust-lang/rust/blob/master/RELEASES.md >
* ref: <https://stackoverflow.com/questions/3654905/faster-way-to-zero-memory-than-with-memset >
2020-01-27 21:33:47 -06:00
Roy Ivy III
244bdf3d4f
who: fix ~ remove unneeded/incorrect time format size change
2020-01-27 21:33:47 -06:00
Roy Ivy III
9416709c9c
stat: fix birth/created time transformation
2020-01-27 21:33:47 -06:00
Roy Ivy III
45a04ce5fc
refactor ~ replace deprecated trim_{left,right}...
with trim_{start,end}...
...
- `trim_{start,end}{,_matches}` stabilized in rust v1.30.0
- `trim_{start,end}{,_matches}` deprecated (with compiler warnings) in rust v1.33.0
+ requires MinSRV >= v1.30.0
* ref: https://github.com/rust-lang/rust/blob/master/RELEASES.md
2020-01-27 21:33:47 -06:00
Roy Ivy III
c22cf215ba
refactor/polish ~ convert to inclusive range operator syntax (..=
)
...
- convert to newer `..=` syntax, fixing compiler warnings
+ requires MinSRV >= v1.26.0
.# [why]
The inclusive range operator (`..=`) was stabilized in rust v1.26.0.
Warnings requesting conversion from the old `...` operator to `..=` were
introduced in rust v1.37.0.
* ref: <https://github.com/rust-lang/rust/blob/master/RELEASES.md >
2020-01-27 21:33:47 -06:00
Roy Ivy III
55209c6490
cp: use CreateFileW
to increase legacy windows compatiblity
2020-01-27 21:33:46 -06:00
Alex Lyon
2dad625dfa
Merge pull request #1402 from GabrielGanne/master
...
ls: fix --color flag
2020-01-27 15:20:43 -08:00
Sylvestre Ledru
0420d0849f
uptime: match the gnu version output
2020-01-03 22:58:11 +01:00
bippityboppity
3511aa987a
Add the 'dyn' keyword where necessary
...
The keyword is needed for trait objects and is intended to improve
readability.
https://doc.rust-lang.org/edition-guide/rust-2018/trait-system/dyn-trait-for-trait-objects.html
2019-10-01 18:34:26 +02:00
Felix Yan
f4b5d6c881
Correct some typos in printf.rs
2019-08-23 00:43:03 +08:00
Gabriel Ganne
64009b090f
ls: implement --color=auto behavior
...
The automatic behavior is to turn on colors only of connected to a
terminal.
Introduce new external crate isatty to handle this.
Signed-off-by: Gabriel Ganne <gabriel.ganne@gmail.com>
2019-06-23 10:38:39 +02:00
Gabriel Ganne
edaf2d85cb
ls: implement --color flag
...
GNU coreutils ls command implements the --color option as follow:
--color[=WHEN]
colorize the output; WHEN can be 'always' (default if omitted),
'auto', or 'never'
With --color=auto, ls emits color codes only when standard output is connected
to a terminal.
Also, add support for the following aliases:
- ‘always’, ‘yes’, ‘force’
- ‘never’, ‘no’, ‘none’
- ‘auto’, ‘tty’, ‘if-tty’
Signed-off-by: Gabriel Ganne <gabriel.ganne@gmail.com>
2019-06-23 10:35:30 +02:00
dependabot-preview[bot]
427381fd87
build: bump aho-corasick from 0.6.10 to 0.7.3
...
Bumps [aho-corasick](https://github.com/BurntSushi/aho-corasick ) from 0.6.10 to 0.7.3.
- [Release notes](https://github.com/BurntSushi/aho-corasick/releases )
- [Commits](https://github.com/BurntSushi/aho-corasick/compare/0.6.10...0.7.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-21 07:17:27 +00:00
Alex Lyon
33a112d64b
Merge pull request #1400 from uutils/dependabot/cargo/num_cpus-1.10.1
...
build: bump num_cpus from 1.10.0 to 1.10.1
2019-06-18 09:25:35 -07:00
dependabot-preview[bot]
4b5dbcf995
build: bump num_cpus from 1.10.0 to 1.10.1
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.10.0...v1.10.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-18 13:21:47 +00:00
dependabot-preview[bot]
642a2a4ecb
build: bump memchr from 1.0.2 to 2.2.0
...
Bumps [memchr](https://github.com/BurntSushi/rust-memchr ) from 1.0.2 to 2.2.0.
- [Release notes](https://github.com/BurntSushi/rust-memchr/releases )
- [Commits](https://github.com/BurntSushi/rust-memchr/compare/1.0.2...2.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 16:21:06 +00:00
Alex Lyon
8575512895
Merge pull request #1389 from uutils/dependabot/cargo/glob-0.3.0
...
build: bump glob from 0.2.11 to 0.3.0
2019-06-17 09:18:43 -07:00
dependabot-preview[bot]
50aab8541d
build: bump glob from 0.2.11 to 0.3.0
...
Bumps [glob](https://github.com/rust-lang/glob ) from 0.2.11 to 0.3.0.
- [Release notes](https://github.com/rust-lang/glob/releases )
- [Commits](https://github.com/rust-lang/glob/compare/0.2.11...0.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-15 22:35:35 +00:00
Alex Lyon
bc783edde7
Merge pull request #1388 from uutils/dependabot/cargo/byteorder-1.3.2
...
build: bump byteorder from 1.3.1 to 1.3.2
2019-06-15 15:34:20 -07:00
Alex Lyon
f1a4d5d4f7
Merge pull request #1393 from uutils/dependabot/cargo/itertools-0.8.0
...
build: bump itertools from 0.7.11 to 0.8.0
2019-06-15 15:33:56 -07:00
Alex Lyon
16daa41f38
Merge pull request #1392 from uutils/dependabot/cargo/regex-syntax-0.6.7
...
build: bump regex-syntax from 0.6.6 to 0.6.7
2019-06-15 15:33:45 -07:00
dependabot-preview[bot]
7a24f5e517
build: bump walkdir from 2.2.7 to 2.2.8
...
Bumps [walkdir](https://github.com/BurntSushi/walkdir ) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/BurntSushi/walkdir/releases )
- [Commits](https://github.com/BurntSushi/walkdir/compare/2.2.7...2.2.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-13 12:59:42 +00:00
dependabot-preview[bot]
e7c3d2e381
build: bump itertools from 0.7.11 to 0.8.0
...
Bumps [itertools](https://github.com/bluss/rust-itertools ) from 0.7.11 to 0.8.0.
- [Release notes](https://github.com/bluss/rust-itertools/releases )
- [Commits](https://github.com/bluss/rust-itertools/compare/0.7.11...0.8.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-13 12:59:16 +00:00
dependabot-preview[bot]
a0ca860f93
build: bump regex-syntax from 0.6.6 to 0.6.7
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.6.6 to 0.6.7.
- [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/regex-syntax-0.6.6...regex-syntax-0.6.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-13 12:59:04 +00:00
dependabot-preview[bot]
688e08127b
build: bump byteorder from 1.3.1 to 1.3.2
...
Bumps [byteorder](https://github.com/BurntSushi/byteorder ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/BurntSushi/byteorder/releases )
- [Changelog](https://github.com/BurntSushi/byteorder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/byteorder/compare/1.3.1...1.3.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-13 12:57:14 +00:00
Alex Lyon
ab8c2b021a
env: fix build on Windows
2019-05-13 12:22:43 -07:00
Alex Lyon
18b19715f9
env: refactor and move away from pre-1.0 Rust conventions
2019-05-13 04:03:10 -07:00
Alex Lyon
b73a664677
Split off uucore into its own repository
2019-05-12 22:42:20 -07:00
Roy Ivy III
bbd0a26012
env: minor fixes and commentary polish
2019-05-09 19:06:32 -05:00
Alex Lyon
8a86c84461
uucore: allow the Linux zero-copy setup on Android
2019-05-01 21:15:01 -07:00
Alex Lyon
2019833fbb
uucore: remove an inaccurate comment
2019-05-01 21:15:01 -07:00
Alex Lyon
b46e2289d6
uucore, yes: add zero-copy on supported platforms (only Linux currently)
2019-05-01 21:15:00 -07:00
Alex Lyon
7651d4d3fc
Get rid of all warnings on Linux (or at least WSL)
2019-05-01 21:14:40 -07:00
Alex Lyon
db35eab23b
Remove git dependencies
2019-05-01 21:14:39 -07:00
Alex Lyon
179de609b5
Replace trim_{left,right} with trim_{start,end} and co. (using Rerast)
2019-05-01 21:14:25 -07:00
Alex Lyon
c7d115b1ad
Convert all try!() to ?
2019-05-01 21:14:25 -07:00
Alex Lyon
220e07dc95
Test on FreeBSD using Cirrus CI and link to the Discord in the README
2019-05-01 21:14:25 -07:00
Zachary Dremann
6fe687c84b
Replace starts_with and slice with trim_left_matches
2019-04-30 21:02:29 -04:00
Zachary Dremann
34eceae2ef
Don't allocate in signal_by_name_or_value
2019-04-29 21:53:14 -04:00
Zachary Dremann
8378c28242
Fix is_signal
2019-04-29 21:35:07 -04:00
Zachary Dremann
1ed8a016c1
Add tests for signals (including failing test for is_signal
2019-04-29 21:32:28 -04:00
Roy Ivy III
31655fc004
env: add support for new '--file' option (includes testing)
...
.# Discussion
This commit adds support for a '-f'/'--file' option which reads "KEY=VALUE" lines from
a config (or ini) style text file and sets the corresponding environment key. This is
modeled after the same option in the `dotenv` and `godotenv` commands. Notably, this
commit does *not* add automatic loading of ".env" configuration files.
The environment variables set by reading the configuration file are set prior to any
unset (eg, `-u BAR`) or set (eg, `FOO=bar`) actions. Files are loaded in order with
later files overwriting any overlapping environment variables, then, unset actions (in
command line order) are executed, then, finally, set actions (in command line order)
are executed.
[1] [`dotenv`](https://github.com/bkeepers/dotenv )
[2] [`godotenv`](https://github.com/joho/godotenv )
2019-04-29 09:50:22 -05:00
Roy Ivy III
9dc31cc1ce
env: enhance support for windows commands (BAT/CMD, builtins)
...
.# Discussion
`env`/`uutils env` didn't support CMD built-in commands (dir, echo, erase, ...),
BAT/CMD files, nor the usual semantics for command search and execution via
PATHEXT (eg, it wouldn't find/execute `batch.BAT` when given just `batch`).
This patch executes the commands via a CMD subshell and fixes all of those issues.
2019-04-29 09:50:22 -05:00
Reto Habluetzel
905d01623d
env: extend help for --null
2019-04-28 12:53:17 +02:00
Reto Habluetzel
2d2042c8fc
env: reject program with --null, error stderr
2019-04-28 11:17:44 +02:00
Marcus Millin
7625878cd7
chown: change first file with --reference
2019-04-23 16:30:17 -05:00
Alex Lyon
01966e8aab
Merge pull request #1356 from Arcterus/echo-locked-stdout
...
echo: write using locked stdout
2019-04-08 15:57:02 -07:00
Alex Lyon
cefbe6c1f2
Merge pull request #1319 from rivy/fix.touch
...
fix ~ touch: fix and test for windows
2019-04-08 15:16:26 -07:00
Roy Ivy III
256a403caa
touch: fix ~ use set_symlink_file_times()
+ remove unused code
2019-04-07 09:14:46 -05:00
Alex Lyon
42794e9f11
echo: write using locked stdout
2019-04-05 22:23:01 -07:00
Alex Lyon
23f6dbf2d3
Merge pull request #1306 from rinconjc/1235
...
tests: untrimmed stdout assertion (fix #1235 )
2019-04-05 22:22:18 -07:00
Alex Lyon
dbc9527b00
Merge pull request #1336 from rinconjc/1321
...
Fix #1321 tsort handle self-loops
2019-04-05 19:15:23 -07:00
Alex Lyon
100f6df2bf
Merge pull request #1354 from ccbrown/rewrite-echo
...
echo: rewrite for readability and tests
2019-04-05 18:39:18 -07:00
Alex Lyon
5934666da3
Merge pull request #1338 from Arcterus/refactor-base32_64
...
base32, base64, uucore: merge base32/base64 code
2019-04-05 16:07:18 -07:00
Christopher Brown
1e223b0b58
echo: rewrite for readability and tests
2019-04-05 18:55:48 -04:00
Alex Lyon
94838dd54c
Merge pull request #1317 from rivy/fix.expr
...
fix ~ expr: update onig/onig_sys dependency (fixes windows compilation bug)
2019-04-03 16:03:26 -07:00
Alex Lyon
dd753e2c78
Merge pull request #1315 from rivy/fix.rm
...
fix ~ rm: fix dir-type symlink removal on windows
2019-04-03 15:53:00 -07:00
Alex Lyon
9817f297b7
Merge pull request #1304 from rivy/fix.cp
...
fix "`cp` always creates backup"
2019-04-03 15:51:18 -07:00
Alex Lyon
8d15f36977
Merge pull request #1305 from rivy/fix.mv
...
fix "`mv` fails transfers between dirs"
2019-04-03 15:50:32 -07:00
Roy Ivy III
e977e29d6a
expr: fix ~ update onig/onig_sys dependency (fix windows compilation bugs)
...
* fixes compile bugs blocking compilation "onig_sys" (required for `expr`) on windows
- MSVC/VS tools are no longer required to be prepped and available on the PATH (via
`vsvarsall` or the "VCX command prompt")
- GNU `gcc` compilation/targets are possible on windows
* restrict onig version to v4.3.2 (or later patches [only]; see discussion)
.# Discussion
onig v4.3.0/v4.3.1 inadvertently introduced a new minimum rust version (requiring
v1.31+; see https://github.com/rust-onig/rust-onig/issues/97 ). This was repaired with
v4.3.2 (requiring only v1.27.0+), and onig now specifies a rust minimum version that will
stay the same for patches, but may change between minor version increments.
2019-03-13 01:33:50 -05:00
Alex Lyon
f49395b1e8
base32, base64, uucore: merge base32/base64 code
2019-02-21 05:10:12 -08:00
Alex Lyon
39b5760f8e
Merge pull request #1307 from PaulCapron/master
...
Remove some useless BufReader wrappers around stdin
2019-02-21 04:26:32 -08:00
Julio Rincon
63bc9985e0
Fix #1321 tsort handle self-loops
2019-02-14 07:45:11 +11:00
Roy Ivy III
52c7f0aa34
mv: refactor try! to ?
2019-02-09 13:23:43 -06:00
Julio Rincon
29c6ad5f6a
tests: untrimmed stdout assertion ( fix #1235 )
2019-02-08 07:54:48 +11:00
Roy Ivy III
41fb27e0a7
rm: fix dir-type symlink removal on windows
2019-02-07 08:30:51 -06:00
Roy Ivy III
1d64162218
cp: fix "cp
always creates backup"
2019-02-07 08:22:41 -06:00
Roy Ivy III
fb1d844e14
mv: fix "mv
fails transfers between dirs"
2019-02-07 08:19:22 -06:00
Roy Ivy III
556a96406c
mv: improve error message
2019-02-07 08:19:22 -06:00
Roy Ivy III
e00d586af1
mv: fix failing tests
2019-02-07 08:19:22 -06: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
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
Julio Rincon
4ac2de925d
tee: handle '-' as filename (POSIX spec) fix #1278
2018-10-16 22:10:53 +11: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
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