Skip to content
Snippets Groups Projects
Commit 2a2be639 authored by Christian Engwer's avatar Christian Engwer
Browse files

[dunecontrol]

alternative implementation for fix_variable_name,
avoiding invocation of tr

[[Imported from SVN: r6829]]
parent 15af3abc
No related branches found
No related tags found
No related merge requests found
......@@ -389,9 +389,7 @@ eval_control() {
# $1 value
#
fix_variable_name() {
# The replacement sequence has to be extended explicitly to the length of
# the matching set for SunOS compatibility
echo -n "$@" | tr '[:punct:]' '[_*]'
echo ${@//[[:punct:]]/_}
}
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment