* Parsing echo flags manually without clap as clap introduced various problematic interactions with hyphens
* fixed error where multiple flags would parse wrong
* Spelling & formatting fixes
* docu for EchoFlag struct
* more extensive comment/documentation
* revert POSIXLY_CORRECT check to only check if it is set
* Fixed problem of overwriting flags. Added test for same issue
* cargo fmt
* cspell
* Update src/uu/echo/src/echo.rs
Enabling POSIXLY_CORRECT flag if value is not UTF-8
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
---------
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
* fixes#7763
- introduce macOS-specific config guard
- added test for testing tail stdin when redirected (`>`) from file and
when through a pipe (`|`)
* created test to mock behavior in #7763, with comments
added drop line
* re-enabled test_stdin_redirect_dir_when_target_os_is_macos, and added a check to handle error message
* added location of current directory so test env can find script
* adjusting to try to have FreeBSD find the file in CI test
* putting in /env instead of assuming bash
* removed ignore macro
* added comments explaining the need for specific macOS cases, including reference to rust-lang issue: https://github.com/rust-lang/rust/issues/95239
* expr: Fix regex escape logic
We have to track if the previous character was already escaped to determine
if the '\' character should be interpreted as an escape character.
* expr: Fix parsing caret (^) as character class negation token
* expr: Add tests for parsing carets in regex
* expr: Add missing semicolon
* expr: Simplify boolean assignment
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* id: The `--real` flag should only affect `-u`, `-g`, and `-U`
* id: Test output with different UID and EUID
* id: Simplify testing different UID and EUID
* id: Compile preload file for test using cc instead of gcc
* id: Remove test for different UID and EUID
The test is incompatible with some CI/CD targets.
This reverts the following commits:
- 8efcbf9adae59b7074d29b2ac8ff8a4083df7d95
- 208fa8e7f88f29214ef99984bf47c6a9ebc2ed0d
- a498a2722d7ab56ce96e7cab4766343930ea85ac