We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cae439 commit 8c2d1e7Copy full SHA for 8c2d1e7
t/op/magic.t
@@ -472,6 +472,16 @@ EOP
472
473
# Some kernels leave a trailing NUL on. Some add a bunch of spaces
474
# after that NUL. We want neither.
475
+ #
476
+ # A selection of kernels/distros tested:
477
478
+ # 4.18.0-348.20.1.el8_5.x86_64 (AlmaLinux 8.5): NUL then spaces
479
+ # 3.10.0-1160.62.1.el7.x86_64 (CentOS 7.9.2009): no NUL nor spaces
480
+ # 2.6.32-954.3.5.lve1.4.87.el6.x86_64 (CloudLinux 6.10): ^^ ditto
481
482
+ # 5.13.0-1025-raspi (Ubuntu 21.10): NUL only
483
+ # 5.10.103-v7+ (RaspiOS 10): NUL only
484
485
$got=~s/\0\s*\z//;
486
487
return $got;
0 commit comments