(actually, this report is relative to rawhide, 1.1.2-10. The code in plain Red Hat 6.1 is broken, of course.) This code echo ${PATH} | grep -q ${kdepath} if ( $status == 0 ) then exit endif can be replaced by: if ( :"${PATH}": =~ :"${kdepath}": ) exit Saves a process. This is also more correct, if the user should happen to have a) whitespace in his PATH or b) a path component like /usr/bind :-) A similar technique can be employed in kde.sh: if ! echo $PATH | grep -q "$kdepath" ; then PATH="$kdepath:$PATH" fi becomes case :$PATH: in *:$kdepath:*) : ;; *) PATH="$kdepath:$PATH" ;; esac A process is saved here, as well.
we aren't going to be able to get this fixed in time for Red Hat Linux 7.0. Luckily, the impact is very low. KDE version 2 no longer requires these scripts, either, so the problem is going away.