mirror of
https://github.com/coreutils/coreutils.git
synced 2026-10-28 09:44:34 +08:00
test: dirname: add tests for -z
* tests/misc/dirname.pl (@Tests): Add a few test cases.
This commit is contained in:
1 parent
657394655b
commit
6b8c706233
1 file changed
+4
@@ -59,6 +59,10 @@ my @Tests =
|
||||
['q-invalid', q{'q name/f'}, {ENV => 'QUOTING_STYLE=invalid'},
|
||||
{OUT => 'q name'}],
|
||||
|
||||
# Exercise -z option.
|
||||
['z0', qw(-z a/b), {OUT => "a\0"}],
|
||||
['z1', qw(--zero a/b), {OUT => "a\0"}],
|
||||
['z2', qw(-z a/b b/a), {OUT => "a\0b\0"}],
|
||||
['z-quote', q{-z 'q name/f'}, {ENV => 'QUOTING_STYLE=invalid'},
|
||||
{OUT => "q name\0"}],
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user