17
0

4 Commits

3 changed files with 33 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Sep 18 13:02:46 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Add patch bug1246923.patch
* Skip colon from device names for ethtool (bsc#1246923)
-------------------------------------------------------------------
Mon Feb 24 13:44:59 UTC 2025 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package bash-completion
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -70,6 +70,8 @@ Patch13: boo1190929-9af4afd0.patch
Patch14: bsc1199724-modules.patch
# PATCH-FIX-SUSE boo#1221414 -- shells/bash-completion: Bug
Patch15: boo1221414-scp.patch
# PATCH-FIX-UPSTREAM bsc#1246923 -- [SLES 16.0] The network name is end with ":" via ethtool auto-completion
Patch16: bug1246923.patch
BuildRequires: libtool
BuildRequires: pkgconfig
BuildArch: noarch

24
bug1246923.patch Normal file
View File

@@ -0,0 +1,24 @@
From a452aee8fb58720ecfadbdaad95277ac9d9072ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
Date: Thu, 2 May 2024 21:22:09 +0300
Subject: [PATCH] fix(available_interfaces): strip only trailing colon from
entries
Leave other punctuation alone, at least for now.
Closes https://github.com/scop/bash-completion/issues/1133
---
bash_completion | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/bash_completion
+++ b/bash_completion 2025-09-18 13:01:19.130576676 +0000
@@ -1738,7 +1738,7 @@ _comp_compgen_available_interfaces()
fi
} 2>/dev/null | _comp_awk \
'/^[^ \t]/ { if ($1 ~ /^[0-9]+:/) { print $2 } else { print $1 } }')" &&
- _comp_compgen -U generated set "${generated[@]}"
+ _comp_compgen -U generated set "${generated[@]%:}"
}
# Echo number of CPUs, falling back to 1 on failure.