* cp: show mode if target does not have S_IWUSR
If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.
This should get the "i-2" test to pass. See
https://github.com/uutils/coreutils/issues/6658.
* cp: with -i, delete destination if needed
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
* uucore: add update control `none-fail`
* uucore: show suggestion when parse errors occurs because of an ambiguous value
* added tests for fail-none and ambiguous parse error
* uucore: ambiguous value code refractor
* cp: no-clobber fail silently and outputs skipped message in debug
* mv: add --debug support
* minor changes
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
* Changed dd parsing error message to be in line with GNU dd
* Correct logic to make dd incorrect number error message fully compatible with GNU. Add test
---------
Co-authored-by: just-an-engineer <Julian.Beltz@zetier.com>
* test: -o arg should trigger an error
Should fix tests/test/test-diag.pl
* test: use var directly in string
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* uucore: Add `getsid` for `process.rs`
* uucore: Changing the return type of the `getsid` function to `Result`
From the manpage of `getsid` we can find that the syscall may failed and set errno, so we have to process those case.
* uucore: Drop support of `getsid` for RedoxOS
* uucore: Add `getpid` for get pid of calling process.
* uucore: Add tests for `getsid` and `getpid`
* uucore: Fix tests failure for `test_getsid`
uucore: Fix tests failure for `test_getsid`
uucore: Fix tests failure for `test_getsid`
* uucore: Fix tests failure on FreeBSD
* uucore: Apply suggestions for `process.rs::tests::test_getsid`
Suggestions from @BenWiederhake , very thanks!
And renamed `TerminalType` to `Teletype` for better naming because of Terminal contains graphic terminal but the current implementation only support `Teletype`.