Source: linux
Version: 6.12.33-1

Dear Maintainer(s),

Since version 6.12.33-1 uname -r contains the regex control character
'+'. This means any existing script passing the output of $(uname -r)
to anything that can interpret it as a regex will start to fail.

e.g. on unstable where uname -r is 6.12.33+deb13-amd64:

$ [[ "My List Of Favourite Kernels: 6.1.31 3.2 2.6.31318231
6.12.27-amd64 6.12.33+deb13-amd64" =~ $(uname -r) ]]; echo $?
1

On testing where uname -r is 6.12.27-amd64:

$ [[ "My List Of Favourite Kernels: 6.1.31 3.2 2.6.31318231
6.12.27-amd64 6.12.33+deb13-amd64" =~ $(uname -r) ]]; echo $?
0

I can fix my autopkgtest scripts that started failing due to this, but
it seems to me it might affect more scripts out there, so filing a bug
so that there's something indexed and searchable.

Reply via email to