Hi all
a few days ago I wrote:
>The last few days, whenever I start a new terminal or CTL-ALT-Fn to a
>terminal, the first thing to print is this spectacularly unhelpful error
>message:
[: : integer expression expected
I have now tracked this down to /etc/profile.d/msec.sh (thanks to all who
responded), which makes sense, since I did upgrade the msec pkg recently,
and more particularly to the following snippet of code
#if [ -n "$SECURE_LEVEL" -a "$SECURE_LEVEL" -le 1 ] && ! echo ${PATH} |
fgrep -q :.; then
# export PATH=$PATH:.
#fi
As an experiment, I've commented it out and nothing seems to have broken,
even my path is exactly the same. But what should it be?
Near as I can make out, this is saying that "if the value of SECURE_LEVEL
is 1 or lower and the characters :. do not appear in the PATH, then add .
(the current directory) to the PATH". So where's the typo that causes the
error msg?
Yes, I know I could just leave things commented out (I run a higher
security level anyway), but I'm trying to learn something here <g>
TIA
--
Michel Clasquin, D Litt et Phil (Unisa)
[EMAIL PROTECTED]/unisa.ac.za http://www.geocities.com/clasqm
This message was posted from a Microsoft-free PC
...hey, at least a wild goose chase gives you some exercise-Neal Stephenson
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com