summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2014-07-03 10:51:02 -0300
committerIsmael Luceno2014-07-03 10:51:02 -0300
commitfc676197b8718a13742c0b6c26a0127ca5e476d9 (patch)
treee5a1bd7b055395e92388933aba33decb9ede1d3d
parent1cb0116b167025e3758bcdac6a9b70166e7dfb50 (diff)
FUNCTIONS: Fix get_up_spell_name to handle the dot and plus symbols
-rw-r--r--ChangeLog3
-rwxr-xr-xFUNCTIONS2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 04dbc1f8cf..293aab1e36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2014-07-03 Ismael Luceno <ismael@sourcemage.org>
+ * FUNCTIONS: Fix get_up_spell_name to handle the dot and plus symbols
+
2014-07-02 Ismael Luceno <ismael@sourcemage.org>
* FUNCTIONS: Added get_scm_version function
diff --git a/FUNCTIONS b/FUNCTIONS
index 8671001a77..07a2322c35 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -659,7 +659,7 @@ function prepare_select_branch() {
## Get uppercase spell name with _ instead of -
#---
function get_up_spell_name() {
- echo ${1:-$SPELL} | tr "a-z-" "A-Z_"
+ echo ${1:-$SPELL} | tr "-.+a-z" "__XA-Z"
}
#---