Andrew Rowson
d0c7e8c09e
du error output should match GNU ( #1776 )
...
* du error output should match GNU
* Created a new error macro which allows the customization of the
"error:" string part
* Match the du output based on the type of error encountered. Can extend
to handling other errors I guess.
* Rustfmt updates
* Added non-windows test for du no permission output
2021-04-17 10:26:52 +02:00
Reto Hablützel
d67560c37a
fix clippy for unix
2021-04-11 16:34:19 +02:00
Sylvestre Ledru
45d70b0c98
Merge pull request #2033 from Gilnaa/panic_2021
...
Fixed panic!/assert! used with improper format strings
2021-04-06 13:46:07 +02:00
Gilad Naaman
bc426fb3af
Fixed panic!/assert! used with improper format strings
2021-04-06 14:23:54 +03:00
Marvin Hofmann
9581fcf688
rm: add verbose output and trim multiple slashes ( #1988 )
...
* rm: add verbose output and trim multiple slashes
Uses the normalize_path used in cargo to strip duplicate slashes
With a link to a std rfc https://github.com/rust-lang/rfcs/issues/2208
This fixes https://github.com/uutils/coreutils/issues/1829
This also touches https://github.com/uutils/coreutils/issues/1768
but does not attempt to fully solve it
2021-04-05 22:18:47 +02:00
Sylvestre Ledru
ac031dffa4
new release 0.0.5
2021-04-03 10:30:07 +02:00
Neculai Balaban
93c7cbe65e
documentation for usual macros
...
- removed repeat_str helper as it's now part of std
- added docstrings for usual macros and test utils
2021-03-22 12:13:38 +02:00
aspen
4e29b693f8
uutils: change every target_os = "macos"
to target_vendor = "apple"
2021-03-18 08:42:53 -04:00
Daniel Rocco
0e02607dc7
numfmt: implement --field
2021-03-08 10:53:34 -05:00
Sylvestre Ledru
8772d81236
Update to platform-info 0.1
2021-03-07 11:29:38 +01:00
Sylvestre Ledru
6481c5a247
Prepare version 0.0.4
2021-03-07 11:29:38 +01:00
Chad Brewbaker
bb54669a5d
Fix macOS aarch64 compile errors ( #1724 )
2021-02-23 10:25:06 +01:00
Alex Lyon
5431e947bc
uucore: process: fix exit status processing ( #1743 )
...
* uucore: process: fix exit status processing
* tests: timeout: check whether subcommand exit codes are returned
2021-02-23 10:21:01 +01:00
Alex Lyon
c8977a78a4
uucore: fix potential use-after-free in utmpx iterator ( #1737 )
2021-02-19 08:38:57 +01:00
Sylvestre Ledru
87428b9c32
update uucore to 0.0.6
2021-02-01 23:53:17 +01:00
Sylvestre Ledru
04b92f3e94
Replaces failure by thiserror. ( #1688 )
...
Failure isn't maintained anymore:
https://github.com/rust-lang-nursery/failure/pull/347
https://rustsec.org/advisories/RUSTSEC-2020-0036.html
2021-01-11 22:01:14 +01:00
Sylvestre Ledru
57e24c9118
also update uucore & uucore_procs versions to 0.0.5
2021-01-10 18:24:43 +01:00
Sylvestre Ledru
7942a64231
Remove 'extern crate'
...
Not necessary anymore. See:
https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html#no-more-extern-crate
2020-12-31 15:44:00 +01:00
Sylvestre Ledru
718695d541
fix(install) - Install was failing with '-m 0333'
...
The parse_numeric was getting ' 0333' as input
and showing 'mode is too large ( 0333 > 7777) as error
Syntax used: https://sources.debian.org/src/firebird3.0/3.0.7.33374.ds4-1/debian/functions.sh/?hl=145#L145
2020-12-18 13:36:55 +01:00
Sylvestre Ledru
f287309b72
perms: add some docs
2020-12-12 14:43:56 +01:00
Sylvestre Ledru
dca1f28085
install: various improvements in output & tests
2020-12-12 14:36:23 +01:00
Sylvestre Ledru
3024ade071
refactor(chgrp, install): Show the error in the program instead of the lib
2020-12-12 14:28:50 +01:00
Sylvestre Ledru
55c660b986
feature(install): move chown functions into uucore and have install owner support use it
2020-12-12 14:27:59 +01:00
Sylvestre Ledru
763de90fda
refactor(chgrp): move chgrp perms function into the uucore to reuse it into install
...
Will move chown later
2020-12-12 14:26:32 +01:00
Roy Ivy III
688db0d4a2
refactor/uucore ~ revise 'Cargo.toml' towards repo norms
2020-11-08 20:53:18 -06:00
Roy Ivy III
2b4b31a9ee
uucore/refactor ~ fix cargo clippy
complaints (*allow* temporary_cstring_as_ptr; added FixME note)
...
* otherwise, unsure how to fix this; the following change
```rust
let res = unsafe { utmpxname(CString::new(f).unwrap().as_ptr()) };
```
to
```rust
let string_ptr = CString::new(f).unwrap().as_ptr();
let res = unsafe { utmpxname(string_ptr) };
```
causes three `who` tests (test_who::test_all, test_who::test_boot, and test_who::test_login)
to fail by generating no output.
2020-11-08 20:53:18 -06:00
Roy Ivy III
3dc9f76c7f
uucore/refactor ~ fix cargo clippy
complaints (*allow* type_complexity)
2020-11-08 20:53:18 -06:00
Roy Ivy III
66dfd73ffe
uucore/refactor ~ fix cargo clippy
complaints (iter_nth_zero)
2020-11-08 20:53:18 -06:00
Roy Ivy III
9473abf3ba
uucore/polish ~ fix cargo clippy
complaints (missing_safety_doc; with ToDO for safety note)
2020-11-08 20:53:18 -06:00
Roy Ivy III
3941d3f18c
uucore/refactor ~ fix cargo clippy
complaints (len_zero)
2020-11-08 20:53:18 -06:00
Roy Ivy III
bc1084a9f5
uucore/refactor ~ fix cargo clippy
complaints (or_fun_call)
2020-11-08 20:53:18 -06:00
Roy Ivy III
c17307c757
fix ~ update workspace pointers to 'uucore' and 'uucore_procs'
2020-11-08 20:26:46 -06:00
Roy Ivy III
aed6f296cf
change ~ prepare 'uucore' for grafting/re-merge into 'coreutils'
2020-11-08 19:57:28 -06:00
Alex Lyon
46e2c14f07
Formatting
2020-11-08 19:56:57 -06:00
Alex Lyon
e8dcca1872
Use OsString for arguments rather than String
2020-11-08 19:56:57 -06:00
Sylvestre Ledru
121ab6d847
build/deps ~ relax/update the wild dep
...
Co-authored-by: Roy Ivy III <rivy.dev@gmail.com>
2020-11-08 19:56:57 -06:00
Roy Ivy III
00779a1fb5
refactor macro variable names (fixes spell-checker/unknown word warnings)
2020-11-08 19:56:57 -06:00
Roy Ivy III
7aa0c92cf8
docs/spell ~ configure VSCode cSpell
2020-11-08 19:56:57 -06:00
Roy Ivy III
d52fb5c484
docs/spell ~ spell-check and addition of exceptions
2020-11-08 19:56:57 -06:00
Roy Ivy III
88e5631fa4
docs/polish ~ polish/update commentary and copyrights
2020-11-08 19:56:57 -06:00
Roy Ivy III
70871edac9
docs/polish ~ remove outdated commentary
2020-11-08 19:56:57 -06:00
Roy Ivy III
b9642a0253
0.0.4
2020-11-08 19:56:57 -06:00
Roy Ivy III
16d367a418
fix 'edition=2018' module import errors
2020-11-08 19:56:56 -06:00
Roy Ivy III
c57a933412
change ~ use crate configuration 'edition=2018'
2020-11-08 19:56:56 -06:00
Roy Ivy III
2f840eedef
docs ~ update meta information
2020-11-08 19:56:56 -06:00
Roy Ivy III
fc6370e160
change/API! ~ new_coreopts!()
=> app!()
2020-11-08 19:56:56 -06:00
Roy Ivy III
0c4d314544
change/API! ~ disp_err!()
=> show_usage_error!()
2020-11-08 19:56:56 -06:00
Roy Ivy III
d6b1052f3f
0.0.3
2020-11-08 19:56:56 -06:00
Roy Ivy III
1013b760c4
fix cargo clippy
warning (no_effect)
2020-11-08 19:56:56 -06:00
Roy Ivy III
b8c22496bb
change/uucore_procs ~ add work-around for attribute/macro name collision during testing
...
- proc_macro "main" collides with attribute "#[main]" during testing (for rust < v1.38.0; fixed in v1.38.0+)
- ref: GH:rust-lang/rust#62127
2020-11-08 19:56:56 -06:00