>From 21e23d1e60ab049e6905546cf92815dc8beb2b66 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Wed, 6 Jan 2021 17:20:30 +0100 Subject: [PATCH 2/3] tests: avoid FP on Solaris 11 'ls -i' outputs leading blanks before the inode number on Solaris 11. The 'exp' reference file should not contain them. * tests/find/printf_inode.sh (make_canonical): Strip off leading blanks. --- tests/find/printf_inode.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/find/printf_inode.sh b/tests/find/printf_inode.sh index 79559821..53925d2b 100755 --- a/tests/find/printf_inode.sh +++ b/tests/find/printf_inode.sh @@ -20,7 +20,11 @@ print_ver_ find oldfind make_canonical() { - sed -e 's/ /_/g' + sed -e ' + # Solaris ls outputs with leading padding blanks; strip them. + s/^ *//g; + # Squeeze blanks between inode number and name to one underscore. + s/ /_/g' } # Create a file. -- 2.29.2