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
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
cnd
8cadaa4664
Merge pull request #1353 from uutils/dependabot/cargo/libc-0.2.51
...
Bump libc from 0.2.42 to 0.2.51
2019-03-29 13:02:30 +04:00
dependabot[bot]
b018cc45de
Bump libc from 0.2.42 to 0.2.51
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.42 to 0.2.51.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.42...0.2.51 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-29 07:30:02 +00:00
Roy Ivy III
35051d7781
CI: fix and improve AppVeyor CI
...
* includes a fix/workaround for ongoing `gcc` library issues
- see github:rust-lang/rust#47048 and github:rust-lang/rust#53454
- note: this fix is required for successful gcc/gnu compilation of `expr` on windows
* improves clarity and logging of the AppVeyor config
* "install" phase is more generic and more easily usable within other rust crates
2019-03-13 01:35:14 -05: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
Alex Lyon
1dc7d8cb91
Merge pull request #1328 from uutils/dependabot/cargo/time-0.1.42
...
Bump time from 0.1.40 to 0.1.42
2019-02-08 11:31:07 -08:00