From e02e485cc6e712879d10fc99034543b7424567fb Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 1 May 2018 19:28:37 +0200 Subject: [PATCH] command-not-found: Split os-release' stuff on space ID_LIKE is defined as a space-separated list and ID can't have spaces. Fixes it for "openSUSE Tumblewee". --- share/functions/__fish_config_interactive.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index 59b52f4b6..f57314543 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -293,7 +293,7 @@ function __fish_config_interactive -d "Initializations that should be performed set -l os if test -r /etc/os-release set os (string match -r '^ID(?:_LIKE)?\s*=.*' < /etc/os-release | \ - string replace -r '^ID(?:_LIKE)?\s*=(.*)' '$1' | string trim -c '\'"') + string replace -r '^ID(?:_LIKE)?\s*=(.*)' '$1' | string trim -c '\'"' | string split " ") end # First check if we are on OpenSUSE since SUSE's handler has no options