Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (0fd0effc91a97b8fa22f8fa1e24ab416052cd1e9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (0fd0effc91a97b8fa22f8fa1e24ab416052cd1e9)
  • Date: Mon, 2 Jan 2023 14:55:09 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

ChangeLog | 4 ++++
FUNCTIONS | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 0fd0effc91a97b8fa22f8fa1e24ab416052cd1e9
Author: Xenanthropy <connerclere AT gmail.com>
Commit: Pavel Vinogradov <public AT sourcemage.org>

FUNCTIONS: fix get_up_spell_name to properly convert chars

diff --git a/ChangeLog b/ChangeLog
index 24ee146..9db1771 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-01-01 Conner Clere <connerclere AT gmail.com>
+ * FUNCTIONS: fix get_up_spell_name to properly convert
+ all characters invalid for bash variable names
+
2023-01-01 Vlad Glagolev <stealth AT sourcemage.org>
* news/newsraft: new spell, terminal feed reader

diff --git a/FUNCTIONS b/FUNCTIONS
index b1fb286..9081b45 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -834,8 +834,9 @@ function get_up_spell_name() {
result=$spell
fi

- # Replaces the hyphens with underscores, then echos $argument in all
uppercase
- result=${result//-/_}
+ # Replaces - and . with _, + with X, then echos $argument in all uppercase
+ result=${result//[-.]/_}
+ result=${result//+/X}
echo "${result^^}"
}




  • [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (0fd0effc91a97b8fa22f8fa1e24ab416052cd1e9), Pavel Vinogradov, 01/02/2023

Archive powered by MHonArc 2.6.24.

Top of Page