+ ver_test \
+ "${KV_MAJOR:-0}.${KV_MINOR:-0}.${KV_PATCH:-0}" \
+ "${operator}" \
+ "${1:-${KV_MAJOR:-0}}.${2:-${KV_MINOR:-0}}.${3:-${KV_PATCH:-0}}"
I've added fallbacks to 0, because it turns out that these components
can be empty.
There may also be a problem in detect_version().
For gentoo-sources-5.10.52 I get:
KV_MAJOR=5
KV_MINOR=10
KV_PATCH=52
but for git-sources-5.14_rc7:
KV_MAJOR=5
KV_MINOR= # empty
KV_PATCH=14
According to a comment in detect_version() the intended behaviour is
"if KV_MAJOR >= 3, then we have no more KV_MINOR" but looks like that
isn't always happening.
Ulrich
--=-=-Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQFDBAEBCAAtFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAmEpzyYPHHVsbUBnZW50 b28ub3JnAAoJEFGIM1CIQV4ubocH+wSsiRRzMzoJhWk+CXG3dhAcHR+L7usDrAzU uoRcUu+7wgX2/N56pR0kSyW3IERV593BKsv1GeVOtxLZob5ytP+xK4mrFYZ0KH79 mJHIP7rPnzcYZDZhl0muk/uyC/qfmbjHk+rpTuaEowoMF+b8Sq6BoOnEGN8GPy6v 8tS6E4b1JuVQN5u4w1XKIGy5IHuDkeW3/9vfsKIJkCI38Bcyqgg20buxLeAQ5Umb j5bg6e6ESSK1EyxG1kFpIiSMLfwzny+2UJR66lIbotW2jr2IfbDamk09JYEzDIYV bLpYRlG0BtCwyNaBeNFDlkkMc4vakt1I8b3JsBz48MeFmntfX2I÷9O
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)