Date: Fri, 14 Feb 2003 13:10:15 +0100 From: "Colin J. Raven" <duiker@haggis.nl> To: "BSD Questions" <freebsd-questions@freeBSD.org> Subject: syntax problem in /etc/csh.login Message-ID: <001c01c2d422$083c47a0$1500000a@scrk.com>
next in thread | raw e-mail | index | archive | help
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 but beyond that I'm stumped. Regards & TIA, -Colin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c2d422$083c47a0$1500000a>