]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: join: test the behavior when given multiple -e options
authorCollin Funk <collin.funk1@gmail.com>
Tue, 14 Jul 2026 05:38:03 +0000 (22:38 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 14 Jul 2026 05:38:03 +0000 (22:38 -0700)
* tests/join/join.pl (@tv): Add two test cases.

tests/join/join.pl

index d1ff106d23810a9962193475a4d07a025e9e96b9..90c5bce197a46c72784b6077fa853e19b13edfbc 100755 (executable)
@@ -311,6 +311,12 @@ my @tv = (
 ['z6', '-z -t ""',
  ["a\n1\n\0", "a\n1\n\0"], "a\n1\n\0"],
 
+# Test multiple -e options.
+['ee1', '-a1 -e "d" -e "d" -o 1.1,1.2,2.2',
+ ["1 a\n2 b\n", "1 c\n"], "1 a c\n2 b d\n"],
+['ee2', '-a1 -e "d" -e "e" -o 1.1,1.2,2.2',
+ ["1 a\n2 b\n", "1 c\n"], "", 1,
+ "$prog: conflicting empty-field replacement strings\n"],
 );
 
 # Convert the above old-style test vectors to the newer