changeset 525:2c31b1d4bd66

array.sh: FIX: call sed with LC_ALL=C to explicitely set the C locale when calling into sed
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 04 Sep 2024 10:36:24 +0200
parents 0665a15bd3ca
children e50ea2fd4b66
files share/local-bsdtools/array.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/share/local-bsdtools/array.sh	Tue Sep 03 12:20:15 2024 +0200
+++ b/share/local-bsdtools/array.sh	Wed Sep 04 10:36:24 2024 +0200
@@ -97,8 +97,8 @@
 #:
 _farr_quote_for_eval_dsq() {
     printf "%s" "${1}" \
-        | /usr/bin/sed -e $'s/\\\\/\\\\\\\\/g' -e $'s/\'/\\\\\'/g'
-    #                       escape a backslash      escape a single quote
+        | LC_ALL=C /usr/bin/sed -e $'s/\\\\/\\\\\\\\/g' -e $'s/\'/\\\\\'/g'
+    #                              escape a backslash      escape a single quote
     # '    # make Emacs happy for correct syntax highlighting
 }