Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #88125

Bug#1108270: linux: uname -r contains regex control character '+'

From Luca Boccassi <bluca@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1108270: linux: uname -r contains regex control character '+'
Date 2025-06-24 15:50 +0200
Message-ID <L1cc9-cPq1-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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.

Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1108270: linux: uname -r contains regex control character '+' Luca Boccassi <bluca@debian.org> - 2025-06-24 15:50 +0200
  Bug#1108270: linux: uname -r contains regex control character '+' Bastian Blank <waldi@debian.org> - 2025-06-24 18:50 +0200
  Processed: Re: Bug#1108270: linux: uname -r contains regex  control character '+' "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-06-24 18:50 +0200

csiph-web