mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
echo: handle double hyphens
This commit is contained in:
parent
2c2f5f14a4
commit
90465357e2
2 changed files with 28 additions and 1 deletions
|
@ -242,6 +242,16 @@ fn test_hyphen_values_between() {
|
|||
.stdout_is("dumdum dum dum dum -e dum\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_double_hyphens() {
|
||||
new_ucmd!().arg("--").succeeds().stdout_only("--\n");
|
||||
new_ucmd!()
|
||||
.arg("--")
|
||||
.arg("--")
|
||||
.succeeds()
|
||||
.stdout_only("-- --\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn wrapping_octal() {
|
||||
// Some odd behavior of GNU. Values of \0400 and greater do not fit in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue