Daniel Hofstetter
2d4810b91b
numfmt: allow ' ' as field separator
2022-11-01 10:04:46 +01:00
Daniel Hofstetter
27c233f294
numfmt: allow "-" in field list
2022-10-31 14:53:41 +01:00
Sylvestre Ledru
b942054568
Merge pull request #4093 from cakebaker/numfmt_test_all_fields
...
numfmt: add test for "--field -" (all fields)
2022-10-31 11:01:32 +01:00
Terts Diepraam
ba3bb56041
Merge pull request #4013 from palaster/rm-correct-prompts
...
rm: rm3 now passes
2022-10-31 10:17:27 +01:00
Daniel Hofstetter
5d27c19853
numfmt: add test for "--field -" (all fields)
2022-10-31 09:26:28 +01:00
Daniel Hofstetter
3a8feedf2d
numfmt: allow hyphen values for --field option
2022-10-29 16:50:41 +02:00
Pat Laster
c4417bf9b2
Merge branch 'main' into rm-correct-prompts
2022-10-27 13:38:41 -05:00
Sylvestre Ledru
00d93ff451
Merge pull request #4088 from tertsdiepraam/hashsum-test-no-names
...
hashsum: enable testing --no-names
2022-10-27 19:55:45 +02:00
Daniel Hofstetter
2eb0b6dfe0
numfmt: round values if precision is 0
2022-10-27 15:33:20 +02:00
Sylvestre Ledru
34eabca299
pwd: support the env variable 'POSIXLY_CORRECT'
...
Should fix tests/misc/pwd-option.sh
2022-10-26 11:40:46 +02:00
Terts Diepraam
96b6252910
Merge pull request #4081 from sylvestre/chown-sep
...
chown: fails when XXXX. or XXXX: is provided (when XXXX is numeric value)
2022-10-26 11:24:35 +02:00
Terts Diepraam
bbc3495896
hashsum: enable testing --no-names
...
Co-authored-by: Huijeong Kim <herehuijeong@gmail.com>
2022-10-26 11:10:26 +02:00
Pat Laster
0079f73568
Merge branch 'main' into rm-correct-prompts
2022-10-25 20:58:01 -05:00
Sylvestre Ledru
52d82d54a3
Revert "hashsum: test b3sum::test_nonames for real ( #4027 )"
...
This reverts commit 02f6fa7b24
.
2022-10-25 23:44:05 +02:00
Sylvestre Ledru
76a0794823
Merge pull request #4072 from jfinkels/clippy-fixes
...
clippy fixes
2022-10-25 23:28:20 +02:00
Sylvestre Ledru
42fad7c4e5
Merge pull request #4078 from sylvestre/update-i
...
{cp, mv} -i --update source existing should not do anything and exit 0
2022-10-25 08:31:39 +02:00
Sylvestre Ledru
9f1ac221cd
chown: fails when XXXX. or XXXX: is provided (when XXXX is numeric values)
...
If the arg starts with an id numeric value, the group isn't set but the separator is provided,
we should fail with an error
Should fix tests/chown/separator.sh
2022-10-25 08:25:05 +02:00
Pat Laster
9069d4832a
Merge branch 'main' into rm-correct-prompts
2022-10-24 18:36:52 -05:00
Sylvestre Ledru
6e8f8034ba
{cp, mv} -i --update source existing should not do anything and exit 0
...
Should fix tests/mv/update.sh
2022-10-24 21:03:30 +02:00
Daniel Hofstetter
dedb6289dd
numfmt: handle negative zero values
2022-10-24 15:13:02 +02:00
Jeffrey Finkelstein
55b3766c10
clippy fixes
2022-10-23 13:56:20 -04:00
Sylvestre Ledru
c766726e8b
Merge pull request #3281 from jfinkels/split-round-robin
...
split: implement round-robin arg to --number
2022-10-23 09:57:01 +02:00
Jeffrey Finkelstein
ac3fcca6c0
cp: correctly copy ancestor dirs in --parents mode
...
Fix a bug where `cp` failed to copy ancestor directories when using
the `--parents` option. For example, before this commit:
$ mkdir -p a/b/c d
$ cp --parents a/b/c d
$ find d
d
d/c
After this commit
$ mkdir -p a/b/c d
$ cp --parents a/b/c d
$ find d
d
d/a
d/a/b
d/a/b/c
This commit also adds the correct messages for `--verbose` mode:
$ cp -r --parents --verbose a/b/c d
a -> d/a
a/b -> d/a/b
'a/b/c' -> 'd/a/b/c'
Fixes #3332 .
2022-10-23 00:06:56 -04:00
Jeffrey Finkelstein
cee6c25cc4
cp: make test for interactive mode more specific
2022-10-23 00:03:26 -04:00
Jeffrey Finkelstein
7dc96697c9
split: implement round-robin arg to --number
...
Implement distributing lines of a file in a round-robin manner to a
specified number of chunks. For example,
$ (seq 1 10 | split -n r/3) && head -v xa[abc]
==> xaa <==
1
4
7
10
==> xab <==
2
5
8
==> xac <==
3
6
9
2022-10-22 23:15:55 -04:00
Pat Laster
99942b4234
Merge branch 'main' into rm-correct-prompts
2022-10-22 14:12:55 -05:00
Huijeong Kim
02f6fa7b24
hashsum: test b3sum::test_nonames for real ( #4027 )
...
* hashsum: test b3sum::test_nonames for real
Signed-off-by: Huijeong Kim <herehuijeong@gmail.com>
* apply cargo format
Signed-off-by: Huijeong Kim <herehuijeong@gmail.com>
2022-10-22 11:23:39 +02:00
Sylvestre Ledru
1d9ec1ed94
Merge pull request #3927 from niyaznigmatullin/fix_timeout_test_tmp_files_deleted_on_sigint
...
test_sort: Fix timeout issue `test_tmp_files_deleted_on_sigint`
2022-10-22 10:24:30 +02:00
Sylvestre Ledru
fd13ceddcb
Merge branch 'main' into rm-correct-prompts
2022-10-22 10:22:29 +02:00
Sylvestre Ledru
e4fe2b10fa
Merge pull request #4014 from tertsdiepraam/ls-windows-permissions
...
`ls`, `stat`: Show more info in long format on Windows
2022-10-22 10:21:43 +02:00
Sylvestre Ledru
49c435a25b
ignore a word
2022-10-20 07:46:38 +02:00
David Matos
d46e5df3d3
hashsum: warn on file not found rather than fail
2022-10-19 22:46:47 +02:00
Pat Laster
79895a73e6
Merge branch 'main' into rm-correct-prompts
2022-10-18 10:48:26 -05:00
Niyaz Nigmatullin
729d97e993
test_sort: use Pcg32 random number generator
2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
ec8e610e48
test_sort: created a new big file for sort
...
Before, the sort could work faster and we could be late with
the signal.
Now we create a new big file, `sort` can't process it in a minute,
so we can safely wait for the temporary directory to be created
and send a signal afterwards
2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
95e7b53402
test_sort: make timeout smarter, wait if failed to create dir
...
Before the change it slept for 0.1 seconds and right after that
asserted if `sort` has created the directory. Sometimes `sort`
didn't manage to create the directory in 0.1 seconds.
So the change is it tries to wait for `timeout` starting with
0.1 seconds, and if directory was not found, it tries 4 more times,
each time increasing timeout twice. Once the directory is found
it breaks.
2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
cefc4f6736
tests: fixed some tests on Windows
...
Tests used to use system `touch` and `ls` instead of
testing bench `fixtures.touch` and `uu_ls`
2022-10-18 10:00:28 +03:00
Pat Laster
87df47dee3
Merge branch 'main' into rm-correct-prompts
2022-10-17 17:41:44 -05:00
Sylvestre Ledru
969f821830
Merge pull request #4009 from andrewbaptist/fix_eof_linebytes
...
Match GNU semantics for missing EOF
2022-10-17 16:23:20 +02:00
Niyaz Nigmatullin
277e3d17a1
tests: change error messages for wrong arguments
...
Clap used `"` for argument values, now uses `'`.
2022-10-16 19:28:04 +03:00
Pat Laster
7e62945fd3
Merge branch 'main' into rm-correct-prompts
2022-10-15 14:58:13 -05:00
Pat Laster
0507270f90
Clippy is going to be the death of me
2022-10-13 20:03:35 -05:00
Pat Laster
70bf4f36a0
Added test to check rm force prompts order
2022-10-13 20:03:35 -05:00
Pat Laster
6245029445
rm: rm3 now passes
2022-10-13 20:03:35 -05:00
Terts Diepraam
14e3c5176c
realpath: require arguments again
2022-10-13 20:06:27 +02:00
Terts Diepraam
b0c200e831
env: handle -
correctly again
2022-10-13 20:06:02 +02:00
Terts Diepraam
153614c40e
tests: update to clap 4
2022-10-13 17:50:43 +02:00
Terts Diepraam
53567deb0f
who: update to clap 4
2022-10-13 17:50:43 +02:00
Terts Diepraam
12048cda68
unlink: update to clap 4
2022-10-13 17:50:43 +02:00
Terts Diepraam
9cce0bed7f
truncate: update to clap 4
2022-10-13 17:50:43 +02:00