Colin J. Raven wrote:
Greetings all!
Trying to create a custom login message for csh users. I put the following in /etc/csh.login
<snip>
###############################################
if [ `whoami` = user1 ]; then
echo ""
echo -e "This is a test message for user1" && \
echo ""
else
if [ `whoami` = user2 ]; then
echo ""
echo -e "This is a test message for user2" && \
echo ""
else
if [ `whoami` = test ]; then
echo ""
echo -e "This is a test message for user test" && \
echo ""
fi
###################################################
</snip>
and got an error upon subsequent login as user "test":
"if: Expression Syntax." (without parens)

Anyone got any idea what I'm doing wrong? Guess: csh syntax is different from bash
You're right!

but beyond that I'm stumped.
beyond that comes 'man csh'.

Sorry, but you have to read it yourself! ;-)

Hint: As the name of the shell suggests, the syntax quite C-like.

Regards & TIA,
-Colin
Reegards

	Heinrich
--

Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -

E-mail: mailto:[EMAIL PROTECTED]
Phone : +49/421/218-4664
Fax   :            -3341


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to