Daniel Hofstetter
3dad5d4d56
Merge pull request #5635 from tertsdiepraam/fix-echo-override
...
`echo`: make `-e` and `-E` override each other
2023-12-11 14:21:15 +01:00
Terts Diepraam
191eb9ac12
echo: make -e and -E override each other
2023-12-11 10:53:55 +01:00
Sylvestre Ledru
4442b35370
Merge pull request #5626 from cakebaker/ls_invalid_block_size
...
ls: handle invalid block size as GNU does
2023-12-11 07:49:38 +01:00
Dorian Péron
673093f842
ls: set default quoting style to literal when not TTY ( #5553 )
...
* ls: set default quoting style to literal if output is not TTY
* tests/ls: Fix quoting tests that now run with Literal as default
* ls: Fix formatting/linting/spelling issues
* tests/ls: Fix windows escaped tests
2023-12-10 16:07:41 +01:00
Sylvestre Ledru
1d4c919b97
Add mdir to the spell ignore
2023-12-09 16:33:19 +01:00
Sylvestre Ledru
e071286eb0
address review comments
2023-12-09 13:10:41 +01:00
Sylvestre Ledru
268b180416
ls colors: create a stylemanager to carry the previous style to know if we need to reset or not
2023-12-09 13:10:38 +01:00
Sylvestre Ledru
b676216f9b
ls: use the gnu_legacy feature from lscolors
2023-12-09 13:05:12 +01:00
Daniel Hofstetter
e9dc2930ee
ls: handle invalid block size as GNU does
2023-12-08 19:19:51 +01:00
Daniel Hofstetter
c111dc88ac
du: fix issue with dereference in test
2023-12-08 10:23:15 +01:00
zhitkoff
967c539cc6
wc: more tests
2023-12-07 10:50:55 -05:00
zhitkoff
054ca4a6b5
wc: better handle files in pseudo-filesystems
2023-12-07 10:50:55 -05:00
Sylvestre Ledru
ca024abe31
Merge pull request #5554 from cakebaker/mv_no_target_directory
...
mv: fix issue with -T and destination ending with "/"
2023-12-07 14:13:06 +01:00
Sylvestre Ledru
fe730f8a49
Merge pull request #5611 from sylvestre/dirdb
...
dircolors: Move the static long string into structures.
2023-12-07 09:58:55 +01:00
Daniel Hofstetter
5a32ab8004
ls: implement --hyperlink
2023-12-07 08:14:25 +01:00
Sylvestre Ledru
80b1ccd665
Merge pull request #5609 from cakebaker/ls_ignore_value_of_posixly_correct
...
ls: ignore value of `POSIXLY_CORRECT`
2023-12-06 21:27:21 +01:00
Sylvestre Ledru
b0fdb1edef
Rest of the comments
2023-12-04 23:39:10 +01:00
Sylvestre Ledru
1c9413e185
bring back the old format
2023-12-04 22:51:08 +01:00
Sylvestre Ledru
dabbcff9fb
dircolors: manage the --print-ls-colors pipe option
2023-12-04 22:41:03 +01:00
Terts Diepraam
35548e2137
Merge pull request #5615 from cakebaker/du_disable_test_on_android
...
du: disable test on Android
2023-12-03 16:58:00 +01:00
Daniel Hofstetter
51fc2d7564
ls: ignore value of POSIXLY_CORRECT
2023-12-03 16:01:19 +01:00
Daniel Hofstetter
49fb72ed21
du: disable test on Android
2023-12-03 14:07:03 +01:00
Nathan Houghton
0ea1a7cd88
tests/cp, tests/test: Don't attempt to set sticky file bit on FreeBSD
...
On FreeBSD (and OpenBSD), only the superuser can set the file sticky
bit.
2023-12-02 16:58:27 +01:00
Sylvestre Ledru
e4b8750434
dircolors -p: generate it dynamically
2023-12-02 15:10:00 +01:00
Sylvestre Ledru
e24d6b2fbd
Merge pull request #5604 from cakebaker/ls_fix_padding
...
ls: fix padding of size column when using `-l`
2023-12-02 09:40:18 +01:00
Daniel Hofstetter
6b3f00cc31
dd: skip two tests without "printf" feature
2023-12-01 10:03:44 +01:00
Piotr Kwiecinski
c6e7fdcabe
skip test_cp_arg_update_interactive on FreeBSD
2023-11-30 18:45:06 +01:00
Daniel Hofstetter
0ec6802459
ls: fix padding of size column when using -l
2023-11-30 16:19:27 +01:00
Daniel Hofstetter
6eec4fe8f9
cut: add test & improve error message
2023-11-29 09:41:11 +01:00
Sylvestre Ledru
b5ce876fef
Merge pull request #5580 from zhitkoff/split-r-chunk
...
split: passing GNU test r-chunk.sh
2023-11-28 10:38:00 +01:00
Sylvestre Ledru
14a8e8a452
Merge pull request #5128 from tertsdiepraam/printf-rewrite
...
`printf` rewrite (with a lot of `seq` changes)
2023-11-28 07:52:58 +01:00
Sylvestre Ledru
88d63be3a0
Merge pull request #4545 from jfinkels/dd-reblock
...
dd: buffer partial blocks in the output writer
2023-11-27 09:31:36 +01:00
Jeffrey Finkelstein
ceccd2ecc6
dd: buffer partial blocks in the output writer
...
Add buffering of partial blocks in the output block writer until they
are completed.
2023-11-26 18:03:06 -05:00
zhitkoff
f8f6346126
wc: fix FilesDisabled error message
2023-11-25 18:16:34 -05:00
zhitkoff
7b2a3e236e
split: r-chunk tests and infinite input
2023-11-25 11:12:08 -05:00
Sylvestre Ledru
64d47730bc
Merge pull request #5555 from cakebaker/cp_adapt_omitting_dir_msg
...
cp: improve error msg if -r is not specified
2023-11-24 21:51:04 +01:00
zhitkoff
4dc46f10e9
split: pass GNU test l-chunk
2023-11-24 10:06:16 +01:00
Coba Weel
7efe33108a
Fix issue 5576 (regex matching bug in expr)
...
Issue 5576 reported a bug in expr, found by the fuzzer. The problem
turns out to be with the regex match operator `:`, which is defined in
POSIX and the GNU manual to match the pattern only when it occurs at
the beginning of the string, i.e., the regex has an implicit `^`
prepended to it. We hadn't been doing that.
2023-11-23 16:26:37 +01:00
Daniel Hofstetter
c2bfb6a465
expr: adapt error messages, revert most of #5559
2023-11-23 15:14:25 +01:00
Daniel Hofstetter
2e77d99dd4
expr: fail fast if there are no operands
2023-11-23 14:35:02 +01:00
Sylvestre Ledru
af021e0d4f
Merge pull request #5559 from pawelngei/expr-substr-error
...
expr: different stderr with `expr "56" "substr"`
2023-11-22 14:56:42 +01:00
Terts Diepraam
0822511fdc
test/printf: ignoring rounding up to 2
...
This is a limitation of the current implementation, which should ultimately use "long double" precision instead of f64.
2023-11-21 16:49:20 +01:00
Zhuoxun Yang
44702940d2
tests/expr: check prefix operation
2023-11-21 22:06:20 +08:00
ALXD
8b650a7a9b
expr: add tests for precise error messages
2023-11-21 10:14:24 +01:00
Terts Diepraam
6d2698b802
Merge branch 'main' into printf-rewrite
2023-11-20 13:53:11 +01:00
clara swanson
58087df02a
stdbuf: remove crash macro ( #5549 )
...
* stdbuf: remove crash! macro
* stdbuf: change target_vendor back to apple
* tests/stdbuf: change stderr_only to usage_error in test_stdbuf_invalid_mode_fails
* stdbuf: add exit code to check_option
* stdbuf: remove set_exit_code line from error
2023-11-20 10:16:18 +01:00
Daniel Hofstetter
285e580b6e
cp: improve error msg if -r is not specified
2023-11-20 09:15:15 +01:00
Daniel Hofstetter
8e796d3bb6
mv: fix issue with -T and dest ending with "/"
2023-11-19 15:10:28 +01:00
Yury Zhytkou
eb00c195c6
split: pass GNU tests/b-chunk.sh ( #5475 )
...
---------
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Brandon Elam Barker <brandon.barker@gmail.com>
Co-authored-by: Kostiantyn Hryshchuk <statheres@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-17 17:19:10 +01:00
Terts Diepraam
ce18e0ab97
printf: ignore hexadecimal floats test
...
This can be un-ignored when it is implemented
2023-11-17 14:47:41 +01:00