mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-16 03:36:18 +00:00
Merge pull request #3613 from Ganneff/lswidthoctal
Forbid octal numbers for width parameter
This commit is contained in:
commit
76d6a4a889
2 changed files with 29 additions and 4 deletions
|
@ -650,6 +650,21 @@ fn test_ls_width() {
|
|||
.stdout_only("test-width-1 test-width-2 test-width-3 test-width-4\n");
|
||||
}
|
||||
|
||||
for option in [
|
||||
"-w 062",
|
||||
"-w=062",
|
||||
"--width=062",
|
||||
"--width 062",
|
||||
"--wid=062",
|
||||
] {
|
||||
scene
|
||||
.ucmd()
|
||||
.args(&option.split(' ').collect::<Vec<_>>())
|
||||
.arg("-C")
|
||||
.succeeds()
|
||||
.stdout_only("test-width-1 test-width-3\ntest-width-2 test-width-4\n");
|
||||
}
|
||||
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("-w=bad")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue