diff options
| author | Bernhard Voelker <mail@bernhard-voelker.de> | 2021-01-06 17:20:30 +0100 |
|---|---|---|
| committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2021-01-07 01:20:22 +0100 |
| commit | 21e23d1e60ab049e6905546cf92815dc8beb2b66 (patch) | |
| tree | 1996abeb4fa86a628b79d721c542b93a5c61322d | |
| parent | 1b3863220725e4ac1151c7b1b081f1844deb63ab (diff) | |
| download | findutils-21e23d1e60a.tar.gz | |
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.
| -rwxr-xr-x | tests/find/printf_inode.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/find/printf_inode.sh b/tests/find/printf_inode.sh index 7955982..53925d2 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. |
