From 716bbf8e10d58ec008eb24978584caebc07f87fc Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 14 Apr 2019 13:57:34 -0400 Subject: _try_load_locale(): Fix handling of cat exit status This fixes a bug introduced in commit 3eb82fb. --- diff --git a/src/locale.sh b/src/locale.sh index 63a38e9..bcafb29 100644 --- a/src/locale.sh +++ b/src/locale.sh @@ -38,7 +38,8 @@ _try_load_locale() # informative error message before aborting, we need this # eval/cat command. This is more resilient against race # conditions than `[ -f "${ms}" ]` is. - eval "$(cat -- "${ms}" 2>/dev/null)" || continue + ms="$(cat -- "${ms}" 2>/dev/null)" || continue + eval "${ms}" return 0 done -- cgit v0.9.1