Sanpi
e1b7f254a6
ls: fix panic when file removed too quickly
...
Fixes #5371
2023-10-07 12:57:05 +02:00
Sylvestre Ledru
a596cda516
Merge pull request #5355 from boxdot/main
...
relpath: remove
2023-10-06 20:39:25 +02:00
Daniel Hofstetter
7d39b1ade5
Merge pull request #5359 from sylvestre/chown-sim
...
chown: move uid & gid detections into their own functions
2023-10-06 09:00:03 +02:00
Daniel Hofstetter
4760b1f340
chown: remove unnecessary return
2023-10-06 07:49:36 +02:00
Sylvestre Ledru
d756a05be6
touch: fix clippy warning - redundant guard
2023-10-05 19:18:00 +02:00
Sylvestre Ledru
b87e1f5676
chown: move uid & gid detections into their own functions
2023-10-05 19:06:46 +02:00
boxdot
e88183174b
relpath: remove
...
Closes #5236
2023-10-04 16:13:06 +02:00
Daniel Hofstetter
c29bcb219f
echo: don't output "\n" if "\c" is encountered
2023-10-03 14:37:15 +02:00
Daniel Hofstetter
139f205783
Merge pull request #5218 from tertsdiepraam/echo-fix-octal-wrapping
...
`echo`: fix wrapping behavior of octal sequences
2023-10-03 13:52:56 +02:00
Terts Diepraam
a107374c82
echo: use controlflow instead of bool
2023-10-03 12:10:20 +02:00
Terts Diepraam
689b21d0b8
Merge pull request #5348 from cakebaker/cp_show_no_skipped_message
...
cp: show no "skipped" msg with -vi/-vin
2023-10-03 11:58:47 +02:00
Terts Diepraam
0f248d7525
Merge pull request #5347 from cakebaker/mv_show_no_skipped_message
...
mv: show no "skipped" msg with -vi/-vin
2023-10-03 11:58:31 +02:00
PGIII
252d01ac33
cp: fail when trying to copy to read only file on mac ( #5261 )
...
* cp: fail when trying to copy to read only file
* fix spelling error in macos.rs
* simplify permissions check
* add comment
* fix typo
2023-10-03 00:48:22 +02:00
Yury Zhytkou
c5a0aa92f8
split: implementing separator option ( #5331 )
...
* split: implementing separator option
* split: separator option - handle multiple update
* split: style
* split: separator tests
* split: separator tests - stdin in ci/cd
* split: tests - ci/cd stdin errors
* split: refactor based on feedback
* split: improve test coverage
* split: fix broken pipe error in tests with stdin
* split: fix for handle_multiple_separator_options
* split: comments
* split: refactor separator code
* split: changes based on feedback
* split: changes based on feedback
2023-10-03 00:42:46 +02:00
Daniel Hofstetter
8ee69d2b92
cp: show no "skipped" msg with -vi/-vin
2023-10-02 15:38:34 +02:00
Daniel Hofstetter
fda762b91c
mv: show no "skipped" msg with -vi/-vin
2023-10-02 14:50:29 +02:00
Daniel Clarke
c27fcc4084
Update parse_datetime to 0.5.0 ( #5313 )
2023-10-01 18:01:46 +02:00
Daniel Hofstetter
95ccc54d05
nl: defer showing "line number overflow" error
2023-09-30 15:35:05 +02:00
Daniel Hofstetter
bc7877b58c
Merge pull request #5124 from shinhs0506/seq-parse
...
seq: parse "infinity" and "-infinity"
2023-09-30 06:59:32 +02:00
Daniel Hofstetter
035032cd83
Merge pull request #5158 from cakebaker/nl_section_delimiter
...
nl: implement -d/--section-delimiter
2023-09-29 10:42:04 +02:00
Daniel Hofstetter
1a87c31b1e
Merge pull request #5336 from sylvestre/isdigit
...
Replace list of digit by is_digit
2023-09-29 10:32:07 +02:00
Sylvestre Ledru
55fd1f3617
Replace list of digit by is_ascii_digit
...
and some ride along simplification
2023-09-28 23:07:01 +02:00
Daniel Hofstetter
51eb20a15d
fmt: use clap's value parser for goal & width
2023-09-28 10:50:56 +02:00
John Shin
9c0b9cae56
seq: simplyfy nan and inf parsing
2023-09-27 14:55:08 -07:00
tommady
2789885648
cp: fix cp -dR --no-preserve=links d c should have different inodes ( #5320 )
...
* fix issue 5308
2023-09-27 13:16:10 +02:00
Daniel Hofstetter
ff500d7d6f
expr: interpret numbers != 0 as true for | and &
2023-09-26 16:24:00 +02:00
Sylvestre Ledru
265c258713
ranges: add unit tests to verify the parsing
...
To test them:
$ cargo test -p uucore --features ranges
2023-09-26 09:40:21 +02:00
Sylvestre Ledru
99120d32c1
cut: fail when the input == usize::MAX
2023-09-26 09:40:21 +02:00
Terts Diepraam
45487d47b8
extract Base enum
2023-09-25 12:02:45 +02:00
renovate[bot]
6aba3a4d67
fix(deps): update rust crate wild to 2.2
2023-09-24 20:04:53 +00:00
Daniel Hofstetter
31d32e3ee2
Merge pull request #5310 from tertsdiepraam/expose-whoami
...
Expose `whoami` function (for nushell!)
2023-09-24 15:24:42 +02:00
Sylvestre Ledru
1c03d1614c
Merge pull request #4199 from cakebaker/tail_remove_unused_var_rename_other_var
...
tail: remove unused "_event_counter"; rename "_timeout_counter" to "timeout_counter"
2023-09-24 14:47:33 +02:00
Leviticoh
b90b59c003
uniq: added support for deprecated -N
option ( #4228 )
2023-09-24 14:44:44 +02:00
Sylvestre Ledru
e8b27d1714
Merge pull request #4527 from bbara/dd-skip-seek
...
dd: fix GNU test 'dd/skip-seek-past-dev'
2023-09-24 14:43:15 +02:00
Terts Diepraam
1dcf3e6353
expose whoami function (for nushell!)
2023-09-24 14:13:16 +02:00
Terts Diepraam
4ca792d2ff
Merge pull request #5306 from cakebaker/nl_fix_output_order_if_stdin_and_files_are_mixed
...
nl: fix output order if stdin and files are mixed
2023-09-24 12:12:54 +02:00
Terts Diepraam
50255a2463
Merge pull request #5305 from sylvestre/dired-prefix
...
ls --dired: replace the previous "total: xx" padding method
2023-09-24 12:09:26 +02:00
tommady
bd0fb817a7
cp: fix the result of inodes are not the same when preserve links is flagged ( #5064 )
...
Should fix:
```
rm -rf a b c
touch a
ln -s a b
mkdir c
./target/debug/coreutils cp --preserve=links -R -H a b c
a_inode=$(ls -i c/a|sed 's,c/.*,,')
b_inode=$(ls -i c/b|sed 's,c/.*,,')
echo "$a_inode" = "$b_inode"
```
2023-09-24 10:53:27 +02:00
Benjamin Bara
8a9b29ddfb
dd: fix GNU test 'dd/skip-seek-past-dev'
2023-09-24 10:00:10 +02:00
Daniel Hofstetter
a4a69c8ee7
tail: "_timeout_counter" -> "timeout_counter"
2023-09-24 09:59:06 +02:00
Daniel Hofstetter
306a58a731
tail: remove unused var "_event_counter"
2023-09-24 09:59:06 +02:00
Sylvestre Ledru
e2e42ac265
Merge pull request #5304 from KAAtheWiseGit/main
...
`rm`: make the utility public
2023-09-23 18:38:25 +02:00
KAA the Wise
4b76b2f332
rm: document PromptProtected interactive mode option
2023-09-23 15:57:30 +03:00
Daniel Hofstetter
06219350fa
nl: fix output order if stdin and files are mixed
2023-09-23 14:44:30 +02:00
Sylvestre Ledru
ba3f266b2c
Merge pull request #5285 from cakebaker/nl_multiple_files
...
nl: make line number and --join-blank-lines work over multiple files
2023-09-23 09:34:04 +02:00
Sylvestre Ledru
48613b4717
ls --dired: replace the previous "total: xx" padding method
...
by something easier
2023-09-23 09:31:16 +02:00
KAA the Wise
20fb473da8
rm: make the remove
function public
2023-09-22 19:18:27 +03:00
KAA the Wise
75044c1bc4
rm: make option types public
...
Made `Options` and `InteractiveMode` public and added documentation for them.
2023-09-22 19:17:24 +03:00
Daniel Hofstetter
38831c46d1
relpath: show error if no argument provided
...
Fixes #5300
2023-09-22 10:58:12 +02:00
Sylvestre Ledru
a12dd2ee1e
ls rename the function for consistency
2023-09-21 21:23:08 +02:00