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
e0eb10cd37
Make Appveyor use the windows feature instead of generic
2019-05-01 21:14:25 -07:00
Alex Lyon
63f1537838
Add windows feature and make unix imply generic
2019-05-01 21:14:25 -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
c851e00dbd
Change the last supported Rust version to 1.31.0
2019-05-01 21:14:25 -07:00
Alex Lyon
4469a326fd
Disable installation test on FreeBSD due to sphinx-build issue
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
Alex Lyon
52785d6a4b
Merge pull request #1368 from uutils/dependabot/cargo/libc-0.2.53
...
build: bump libc from 0.2.51 to 0.2.53
2019-04-30 19:49:07 -07:00
Alex Lyon
0101351290
Merge pull request #1369 from Dr-Emann/uucore_signals_cleanup
...
Uucore signals cleanup
2019-04-30 19:41:05 -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
dependabot[bot]
08ec78b634
build: bump libc from 0.2.51 to 0.2.53
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.51 to 0.2.53.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.51...0.2.53 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 21:06:56 +00:00
Alex Lyon
d448fd81c5
Merge pull request #1316 from rivy/fix.env
...
fix ~ env: support windows commands (BAT/CMD, builtins)
2019-04-29 14:04:53 -07: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
Roy Ivy III
f72fff7b42
augment UCommand with #[derive(Debug)]
to allow improved test diagnostics
2019-04-29 09:46:15 -05:00
Roy Ivy III
c512ae0c52
env: add test for "env
fails echo on windows"
2019-04-29 09:32:00 -05:00
Alex Lyon
bcc821caa8
Merge pull request #1363 from rethab/reject-null-with-program
...
env: reject program with --null, error stderr
2019-04-28 04:04:23 -07: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
cnd
75249e1e5d
Merge pull request #1360 from uutils/dependabot/cargo/filetime-0.2.5
...
build: bump filetime from 0.2.4 to 0.2.5
2019-04-24 16:23:05 +04:00
dependabot[bot]
2d55e5ca85
build: bump filetime from 0.2.4 to 0.2.5
...
Bumps [filetime](https://github.com/alexcrichton/filetime ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/alexcrichton/filetime/releases )
- [Commits](https://github.com/alexcrichton/filetime/compare/0.2.4...0.2.5 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-24 07:26:10 +00:00
Alex Lyon
d9627af4ae
Merge pull request #1335 from uutils/dependabot/cargo/rand-0.6.5
...
Bump rand from 0.5.5 to 0.6.5
2019-04-23 19:36:20 -07:00
Alex Lyon
062a86fb92
Merge pull request #1359 from wnklmnn/dependabot/cargo/rand-0.6.5
...
replace deprecated functions
2019-04-23 19:29:35 -07:00
Pascal Winkelmann
e18b5a5096
replace deprecated functions
2019-04-24 01:35:52 +02:00
Alex Lyon
4537cce4fc
Merge pull request #1310 from dvrax/chown-ref-fix
...
chown: change first file with --reference
2019-04-23 14:59:57 -07:00
Marcus Millin
7625878cd7
chown: change first file with --reference
2019-04-23 16:30:17 -05:00
dependabot[bot]
32325da059
Bump rand from 0.5.5 to 0.6.5
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.5.5 to 0.6.5.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.5.5...0.6.5 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-23 17:39:22 +00:00
Alex Lyon
be91d50361
Merge pull request #1343 from uutils/dependabot/cargo/lazy_static-1.3.0
...
Bump lazy_static from 1.2.0 to 1.3.0
2019-04-23 10:37:18 -07: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
44af40797c
touch: fix ~ recategorize 'touch' from 'fuchsia' (ie, unix) to 'generic'
2019-04-07 09:14:46 -05:00
Roy Ivy III
2cf92a3e69
touch: fix ~ activate tests on non-unix platforms
2019-04-07 09:14:46 -05: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
e248730140
echo: update tests to check for ending newlines
2019-04-05 22:27:25 -07: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
dependabot[bot]
9fc716d1b8
Bump lazy_static from 1.2.0 to 1.3.0
...
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases )
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/compare/1.2.0...1.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-06 01:59:58 +00:00
Alex Lyon
a9864b369b
Merge pull request #1234 from uutils/dependabot/cargo/onig-3.2.2
...
Bump onig from 3.1.1 to 3.2.2
2019-04-05 18:58:11 -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
dependabot[bot]
b23dab945c
Bump onig from 3.1.1 to 3.2.2
...
Bumps [onig](https://github.com/iwillspeak/rust-onig ) from 3.1.1 to 3.2.2.
- [Release notes](https://github.com/iwillspeak/rust-onig/releases )
- [Commits](https://github.com/iwillspeak/rust-onig/compare/v3.1.1...v3.2.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-03 23:05:19 +00:00