From 30558c7a855058994a520c74af77db0854fc296d 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. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang.sh') diff --git a/lang.sh b/lang.sh index 936c84c4..9fe22d8a 100755 --- a/lang.sh +++ b/lang.sh @@ -42,7 +42,7 @@ if [ "$sourced" = 1 ]; then consoletype=$CONSOLETYPE if [ -z "$consoletype" ]; then - consoletype=$(/sbin/consoletype || :) + consoletype=$(/sbin/consoletype stdout) fi if [ -n "$LANG" ]; then -- cgit v1.2.1