From f9c418a4fa294d62eb333a6d301df09ba68dc243 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Mon, 17 Aug 2020 21:00:16 +0200 Subject: lang.csh: silence consoletype warnings --- mageia/etc/profile.d/lang.csh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mageia/etc/profile.d') diff --git a/mageia/etc/profile.d/lang.csh b/mageia/etc/profile.d/lang.csh index 4978981c..f53290e9 100755 --- a/mageia/etc/profile.d/lang.csh +++ b/mageia/etc/profile.d/lang.csh @@ -18,7 +18,7 @@ if ($LC_SOURCED == 1) then endif endif - set consoletype=`/sbin/consoletype stdout` + set consoletype=`/sbin/consoletype stdout 2> /dev/null` if ($?CHARSET) then switch ($CHARSET) @@ -80,7 +80,7 @@ if ($LC_SOURCED == 1) then breaksw endsw if ( -x /bin/unicode_start ) then - if { /sbin/consoletype fg } then + if { /sbin/consoletype fg 2> /dev/null } then if ( $?SYSFONT ) then if ( $?SYSFONTACM ) then unicode_start $SYSFONT $SYSFONTACM @@ -113,7 +113,7 @@ if ($LC_SOURCED == 1) then breaksw endsw if ( -x /bin/unicode_stop ) then - if { /sbin/consoletype fg } then + if { /sbin/consoletype fg 2> /dev/null } then /bin/unicode_stop endif endif -- cgit v1.2.1