Haisham
524be6e4ae
kill: accept all casings for signal names in --list
2024-04-15 03:27:51 +02:00
Sylvestre Ledru
7f71611849
Merge pull request #6231 from LucasLarson/copy-recursive-option
...
swap `cp`’s short `-r` and alias `-R` recursive options
2024-04-14 22:09:07 +02:00
Lucas Larson
ffab3a12e7
fix: swap cp
’s short -r
and alias -R
recursive options
...
the only implementable portion of #6223 is “to switch `-R` and `-r`
to `-r` being the alias because `-R` is the POSIX flag”
https://github.com/uutils/coreutils/issues/6223#issuecomment-2054097049
Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
2024-04-14 15:30:17 -04:00
Ben Wiederhake
91679fc747
wc: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:47 +02:00
Ben Wiederhake
a699bfd1fb
uniq: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
3285f95eb3
touch: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
25245bde65
tee: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
88a2ea4f3b
tail: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
872ec050e4
sort: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
70d84e168c
shred: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
1dd7d8e0db
od: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
2646944bee
numfmt: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
3877d14504
ls: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
27a81f3d32
du: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
d4546ced26
cp: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Ben Wiederhake
4ec82948b6
uucore: properly handle aliases in ShortcutValueParser
2024-04-14 15:39:46 +02:00
Haisham
333e4d9fe9
kill: print --table as vertical ( #6216 )
...
* kill: print --table as vertical
* kill: remove signal padding on --table
* kill: skip exit signal in --table
* kill: replace "skip" with "filter"
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-04-14 15:08:51 +02:00
Jadi
9b4a787be7
kill: return 1 and gnu style stderr in case of no pid ( #6225 )
...
* kill: return 1 and gnu style stderr in case of no pid
closes #6221
* Update src/uu/kill/src/kill.rs
Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
---------
Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
2024-04-14 14:13:15 +02:00
Daniel Hofstetter
aaaf4c3f91
kill: don't show EXIT with --list
2024-04-14 13:42:55 +02:00
Haisham
693149d683
kill: support multiple signals for --list
2024-04-12 06:21:48 +02:00
Chad Williamson
9d82fa3b9a
mv: avoid attempting to set xattr on redox
2024-04-12 06:16:48 +02:00
Daniel Hofstetter
5bf939aec6
Merge pull request #6207 from BenWiederhake/pr/6069
...
cp: handle update prompt with and without interactive mode enabled
2024-04-11 14:55:26 +02:00
Qiu Chaofan
11c9351a9c
Initial AIX support ( #6209 )
...
* Initial AIX support
Add support to build on AIX operating system. Most of the changes are
in fs part. Since AIX is still tier-3 target, current support is minimal
and does not require passing all tests.
* Fix spell checking failure
2024-04-10 13:40:44 +02:00
Vikrant2691
9b9c0cc237
cp: handle update prompt with and without interactive mode enabled
2024-04-09 15:14:33 +02:00
Sylvestre Ledru
aeafabd23f
Merge pull request #6185 from maxer137/main
...
seq: Removed zero-padding of string when parsing with parse_exponent_no_decimal
2024-04-08 09:14:42 +02:00
Haisham
843407faf8
kill: removed unnecessary calls to print in print_signals
2024-04-07 22:48:15 +02:00
Haisham
6e4c9119fb
kill: print signals vertically
2024-04-07 22:48:15 +02:00
Ben Wiederhake
d5e7f9a4a4
wc: count ASCII control characters as word characters
2024-04-07 02:12:22 +02:00
Ulrich Hornung
eca8130a4a
feature: env argv0 overwrite (unix only)
2024-04-07 01:27:30 +02:00
maxer137
538f5ba6c2
Merge branch 'main' into main
2024-04-05 20:43:02 +00:00
maxer137
0fdefc3767
seq: remove zero padding from parse_decimal_and_exponent
...
This adds the same fix applied to `parse_exponent_no_decimal`.
This way we don't need to create large strings
2024-04-05 15:01:18 +02:00
Daniel Hofstetter
ac12957307
cksum: fix code formatting
2024-04-05 07:14:37 +02:00
Jadi
4312f3c43e
cksum: adding -b as the short form for --base64
...
closes #5706
2024-04-04 15:09:17 +03:30
maxer137
cdfcae4d4f
seq: Reverted change in is_minus_zero check
...
I had made the mistake of not running all the tests. This is indeed needed. However, you still need to add the exponent if it's positive for 0 numbers.
This way, 0 numbers (such as 0e+5) will be counted as having a width of 5.
This change also removes the memory allocation needed for the previous implementation. Where the string itself would be padded with zeros on the right side. Creating large numbers this method would cause large allocations in memory.
This does not seem to fix issue #6182 .
2024-04-03 19:20:27 +02:00
maxer137
362deeca84
seq: remove exponent exponent less than 0 check.
...
When exponent is greater than 0 we previously created a new string causing us to create a new string with a much larger size.
This would the get passed to the BigDecimal crate which would get stuck.
2024-04-03 16:07:31 +02:00
maxer137
efd7b6116c
seq: remove is_minus_zero_float check on parse_exponent_no_decimal
2024-04-03 16:07:04 +02:00
Sylvestre Ledru
2fe5dc874e
Fix clippy warning match_bool
2024-04-03 09:28:22 +02:00
Ben Wiederhake
714b4ff589
ls: fix exit code for --time-style when used
2024-04-01 22:57:18 +02:00
Ben Wiederhake
4a1bd78f48
ls: compute correct exit code on error
...
Note in particular that this seems to be the only tool where invalid
stringly-enum values cause a different exit code than invalid arguments.
2024-04-01 22:57:18 +02:00
Carbrex
49c7e65f5d
Use time-style only if time is provided
2024-04-01 17:09:59 +02:00
Sylvestre Ledru
4482a6248f
Merge pull request #6157 from BenWiederhake/dev-tee-fail-open
...
tee: Correctly handle read-only files, avoid unnecessary wrapping
2024-04-01 01:41:40 +02:00
Michael Vogt
af0ba86657
date: support -f -
to read from stdin
...
So far `date -f -` was not reading from stdin. This commit fixes
this.
Closes : #6058
2024-03-31 22:05:47 +02:00
Ben Wiederhake
675dd9404a
tee: avoid unnecessarily cloning argument list
2024-03-31 18:47:32 +02:00
Ben Wiederhake
8ab825c49f
tee: correctly handle writing to read-only files
2024-03-31 18:47:32 +02:00
Ben Wiederhake
5c36ed92b8
tee: remove unnecessary memory indirection
...
This removes two layers of Box<NamedWriter<...>>.
The indirection appears to be unintentional, and makes it harder to
understand and change the code.
2024-03-31 17:01:49 +02:00
Daniel Hofstetter
0ef06bd82d
Merge pull request #6131 from sylvestre/0.0.26
...
Try to release 0.0.26 to see if the artifacts are generated
2024-03-31 12:47:55 +02:00
Sylvestre Ledru
b869c67d6a
Merge pull request #6150 from BenWiederhake/dev-dircolors-repeated
...
dircolors: accept repeated flags
2024-03-31 12:08:55 +02:00
Sylvestre Ledru
01ea23ba21
Try to release 0.0.26 to see if the artifacts are generated
2024-03-30 22:51:24 +01:00
Ben Wiederhake
8e794d0654
dircolors: accept repeated flags
2024-03-30 22:50:57 +01:00
Ben Wiederhake
9dbf2c362d
dirname: accept repeated flag
2024-03-30 22:50:52 +01:00