From a9faf774826e162f508594b979cbcfb331b9c457 Mon Sep 17 00:00:00 2001
From: Jorrit Fahlke <joe@dune-project.org>
Date: Mon, 22 Dec 2008 14:09:35 +0000
Subject: [PATCH] fix tr invocation for SunOS

[[Imported from SVN: r5395]]
---
 bin/dunemodules.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/dunemodules.inc b/bin/dunemodules.inc
index 8dba379bb..963a8bceb 100644
--- a/bin/dunemodules.inc
+++ b/bin/dunemodules.inc
@@ -367,7 +367,9 @@ eval_control() {
 # $2 value
 #
 fix_variable_name() {
-  echo -n "$@" | tr '[:punct:]' '__'
+  # The replacement sequence has to be extended explicitly the the length of
+  # the matching set for SunOS compatibility
+  echo -n "$@" | tr '[:punct:]' '[_*]'
 }
 
 fix_and_assign() {
-- 
GitLab