summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-01-06 21:44:55 +0000
committerBill Nottingham <notting@redhat.com>2006-01-06 21:44:55 +0000
commit0135e70d7b6b7d26f2bcd8b68a4aa29413ce0592 (patch)
treeaecda7ad34e2a2be668764c07f5ae1837e779eda
parent3d581999789d66a892efbd987c539d6fd54489a0 (diff)
downloadinitscripts-0135e70d7b6b7d26f2bcd8b68a4aa29413ce0592.tar.gz
initscripts-0135e70d7b6b7d26f2bcd8b68a4aa29413ce0592.tar.xz
initscripts-0135e70d7b6b7d26f2bcd8b68a4aa29413ce0592.zip
don't run unicode_start for subshells (#176832)
-rwxr-xr-xlang.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang.sh b/lang.sh
index 4f9d2f5d..2bf16f35 100755
--- a/lang.sh
+++ b/lang.sh
@@ -61,7 +61,7 @@ if [ "$sourced" = 1 ]; then
if [ -n "$LANG" ]; then
case $LANG in
*.utf8*|*.UTF-8*)
- if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then
+ if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" -a $SHLVL -eq 1 ]; then
[ -x /bin/unicode_start ] && /sbin/consoletype fg && unicode_start $SYSFONT $SYSFONTACM
fi
;;