160;안녕Ȣ16;세요?
최근에 Centos 71004;/196; Ǻ12;1796; 수 없1060; 업데1060;트Ȣ16;였습니다.
그런데 c-shell를 1201;용Ȣ16;lj16; 과1221;에서 syntax error가 0156;생Ȣ16;여 도움1012; Ǻ19;고1088; ,172;시글1012; 1089;성합니다.
OS Centos 7 1060;며 커널 1221;보lj16; 아래와 같습니다.
[root@wyverns ~]# uname -r 3.10.0-1062.el7.x86_64 [root@wyverns ~]# cat /proc/version160; Linux version 3.10.0-1062.el7.x86_64 (*********@********.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Wed Aug 7 18:08:02 UTC 2019 |
기1316; bash shell에서lj16; 아무런 내용1060; 안뜨lj16;데,
계1221;1012; passwd 에서 c-shell/196; 1201;용할 ᅆ1;우, 아래와 같1008; 에러가 뜹니다.
Last login: Wed Apr 160;8 16:07:25 2020 from 192.168.0.57 if: Expression Syntax. [root@wyverns ~]#160; |
1060; 상태에서 source .cshrc1012; Ȣ16;,172; .112; ᅆ1;우 1221;상1201;1004;/196; c-shell1060; 1201;용.121;니다.
위 과1221;1008; 모.160; DVD/196; clean 설치한 1060;후 0156;생한 내용1077;니다.
여기서 if: Expression Syntax 에러가 0156;생Ȣ16;lj16; 원1064;과 해결 0169;법1012; 알고 dz10;습니다.
Á¶»çÇÑ ¹Ù·Î´Â c-shellÀº óÀ½¿¡
/etc/csh.cshrc ¿Í /etc/csh.login 2ÆÄÀÏÀ» sourcing Çϴ°ÍÀ¸·Î ³ª¿É´Ï´Ù.
ÀÌ ¶§, /etc/csh.login ¿¡¼
if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh /etc/profile.d/csh.local )
if ( -r "$i" ) then
if ($?prompt) then
source "$i"
else
source "$i" >& /dev/null
endif
endif
end
unset i nonomatch
endif
ÀÌ ³»¿ëÀ» ó¸®ÇÏ´Â °úÁ¤¿¡¼ À§¿Í °°Àº error°¡ ³ª¿À´Â °ÍÀ¸·Î È®ÀÎÇÏ¿´½À´Ï´Ù.
µµ ¿Ã·ÁÁּžß...
¾Æ·¡´Â /etc/csh.login ÆÄÀÏ ³»¿ëÀÔ´Ï´Ù.
# /etc/csh.login
# System wide environment and startup programs, for login setup
#add sbin directories to the path
foreach p ( /usr/local/sbin /usr/sbin )
switch (":${PATH}:")
case "*:${p}:*":
breaksw
default:
if ( $uid == 0 ) then
set path = ( ${p} ${path:q} )
else
set path = ( ${path:q} ${p} )
endif
breaksw
endsw
end
setenv HOSTNAME `/usr/bin/hostname`
set history=1000
if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh /etc/profile.d/csh.local )
if ( -r "$i" ) then
if ($?prompt) then
source "$i"
else
source "$i" >& /dev/null
endif
endif
end
unset i nonomatch
endif
RHEL 7 ¶Ç´Â CENTOS 7 OS¿¡ Á¸ÀçÇÏ´Â ¹ö±×ÀÔ´Ï´Ù.
ÀÌ ¹ö±×´Â cshÀ» »ç¿ëÇÏ´Â °èÁ¤À» ·Î±×ÀÎÇÏ´Â °úÁ¤Áß, sourcingµÇ´Â ÆÄÀÏµé ³»¿ëµé Áß¿¡¼ csh ÇüÅ°¡ ¾Æ´Ñ bash ÇüÅÂÀÇ if ¹®¹ýÀÌ ³²¾Æ ÀÖ¾î¼ ¹ß»ýÇÑ ¹®Á¦ÀÔ´Ï´Ù.
¾Õ¼ ÀÌ·¯ÇÑ ¹ö±×´Â report°¡ µÇ¾úÀ¸¸ç, À̸¦ fixÇϱâ À§ÇÑ ³»¿ëµµ ÀÌ¹Ì ¾÷µ¥ÀÌÆ® µÈ »óÅÂÀÔ´Ï´Ù.
ÇØ°á ¹æ¹ýÀº yum install kde-settings °úÁ¤À» ÅëÇØ, ¾÷µ¥ÀÌÆ® ÇÏ°Ô µÇ¸é, csh login °úÁ¤¿¡¼ ¹ß»ýÇÏ´Â if: Expression Syntax ¹®Á¦°¡ ÇØ°áµË´Ï´Ù.
ÇØ°áÃ¥À» ãÀº ¸µÅ©´Â ¾Æ·¡¿¡ ³»¿ëÀ» º¸°í ÇØ°áÇÏ¿´½À´Ï´Ù.
https://bugzilla.redhat.com/show_bug.cgi?id=1738491
Àú¿Í ºñ½ÁÇÑ ¹®Á¦¸¦ °Þ´Â »ç¶÷µéµµ ÀÌ ³»¿ëÀ» º¸°í ²À ÇØ°áÇϼÌÀ¸¸é ÁÁ°Ú½À´Ï´Ù.