From 8db45a87941794fc24bdbf063be71d1eb1b9522b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 17 Mar 2009 15:14:26 -0400 Subject: Add an option for consoletype to always return 0. (#453798, ) This allows tcsh -e to work, with lang.sh. It's a hack, but there really isn't a better way to solve it. --- lang.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lang.sh') diff --git a/lang.sh b/lang.sh index 475f3f20..74c31660 100755 --- a/lang.sh +++ b/lang.sh @@ -41,7 +41,10 @@ if [ "$sourced" = 1 ]; then [ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET - consoletype=$(/sbin/consoletype) + consoletype=$CONSOLETYPE + if [ -z "$consoletype" ]; then + consoletype=$(/sbin/consoletype stdout) + fi if [ -n "$CHARSET" ]; then case $CHARSET in -- cgit v1.2.1