From a264dafa96f23655225d138534afa687496b34d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D1=80=D0=B0=D1=85=D0=B8=D1=9A=D0=B0=20=D0=A0?= =?UTF-8?q?=D0=B0=D0=B4=D0=B8=D1=9B?= Date: Wed, 31 Jul 2024 09:47:43 +0200 Subject: [PATCH] bin/llvm-find: Use explicit number ranges to workaround scan-build-py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Страхиња Радић --- bin/llvm-find | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/llvm-find b/bin/llvm-find index 10d72af..11e4f0d 100755 --- a/bin/llvm-find +++ b/bin/llvm-find @@ -2,8 +2,8 @@ # vim: ft=bash: exec /usr/bin/env PATH=/usr/local/bin:/usr/bin:/bin \ - "$( ( commands=$(find /usr/bin /usr/local/bin -name "${0##*/}"'-??' \ - -print) + "$( ( commands=$(find /usr/bin /usr/local/bin \ + -name "${0##*/}"'-[0-9][0-9]' -print) [ -n "$commands" ] || commands=$(printf "%s" "${0##*/}") printf "%s\n" "$commands" ) | sort -Vr | sed 1q )" $(printf "%s" "$*" | tr -d '\\\n`;$()') -- 2.45.2