Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to devel grimoire by George Sherwood (f1347b21edad34c89ad4f11f7b233d25c21a2d65)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: George Sherwood <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to devel grimoire by George Sherwood (f1347b21edad34c89ad4f11f7b233d25c21a2d65)
  • Date: Tue, 14 Nov 2006 22:09:23 -0600

GIT changes to devel grimoire by George Sherwood <chat AT sourcemage.org>:

shell-term-fm/bash/profile | 1 +
shell-term-fm/bash/profile.d/dummy | 2 +-
shell-term-fm/bash/profile.d/editor.sh | 2 +-
shell-term-fm/bash/profile.d/lc.sh | 27 ++++++---------------------
4 files changed, 9 insertions(+), 23 deletions(-)

New commits:
commit f1347b21edad34c89ad4f11f7b233d25c21a2d65
Author: George Sherwood <chat AT sourcemage.org>
Commit: George Sherwood <chat AT sourcemage.org>

bash: Updated files from test to devel

diff --git a/shell-term-fm/bash/profile b/shell-term-fm/bash/profile
index 0a97f3e..ebba98e 100644
--- a/shell-term-fm/bash/profile
+++ b/shell-term-fm/bash/profile
@@ -17,4 +17,5 @@ for i in /etc/profile.d/*.sh ; do
. $i
fi
done
+unset i

diff --git a/shell-term-fm/bash/profile.d/dummy
b/shell-term-fm/bash/profile.d/dummy
index 155b6b5..ece9fcd 100644
--- a/shell-term-fm/bash/profile.d/dummy
+++ b/shell-term-fm/bash/profile.d/dummy
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# First check if this variable is already set
# then if not set, check it (maybe), then set it

diff --git a/shell-term-fm/bash/profile.d/editor.sh
b/shell-term-fm/bash/profile.d/editor.sh
index d848828..c1d819b 100644
--- a/shell-term-fm/bash/profile.d/editor.sh
+++ b/shell-term-fm/bash/profile.d/editor.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Added by /usr/sbin/smgl.install
# First check if this variable is already set
# then if not set, check it (maybe), then set it
diff --git a/shell-term-fm/bash/profile.d/lc.sh
b/shell-term-fm/bash/profile.d/lc.sh
index 176be51..a8169cb 100644
--- a/shell-term-fm/bash/profile.d/lc.sh
+++ b/shell-term-fm/bash/profile.d/lc.sh
@@ -1,25 +1,10 @@
-#!/bin/bash
-# Enhancing support for locale support
-# First source the locale config then
-# if a var is set set it...
+#!/bin/sh
+# Source the locale config and export all variables that are set.

. /etc/sysconfig/locale

-function export_if_set() {
-
-#if the variable whose name is in $1 is not empty
-
-if [[ -n ${!1} ]]
-then
- export $1
-fi
-}
-
-LOCALE_VARS="LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE \
-LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME \
-LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_ALL"
-
-for i in $LOCALE_VARS
-do
- export_if_set "$i"
+for i in LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
+LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \
+LC_ALL; do
+ eval [ \"'$'$i\" ] && export $i
done



  • [SM-Commit] GIT changes to devel grimoire by George Sherwood (f1347b21edad34c89ad4f11f7b233d25c21a2d65), George Sherwood, 11/14/2006

Archive powered by MHonArc 2.6.24.

Top of Page