Re: syntax problem in /etc/csh.login

2003-02-14 Thread Heinrich Rebehn
Colin J. Raven wrote: +> > if [ `whoami` = test ]; then +> > echo "" +> > echo -e "This is a test message for user test" && \ +> > echo "" +> > fi +> > ### +> > +> > and got an error upon subsequent login as user "test": +> > "if: Expression Syntax

Re: syntax problem in /etc/csh.login

2003-02-14 Thread Ruben de Groot
On Fri, Feb 14, 2003 at 02:40:17PM +0100, Colin J. Raven typed: > > +> > if [ `whoami` = test ]; then > +> > echo "" > +> > echo -e "This is a test message for user test" && \ > +> > echo "" > +> > fi > +> > ### > +> > > +> > and got an error upon s

Re: syntax problem in /etc/csh.login

2003-02-14 Thread Daniel Bye
On Fri, Feb 14, 2003 at 01:10:15PM +0100, Colin J. Raven wrote: > Greetings all! > Trying to create a custom login message for csh users. > I put the following in /etc/csh.login > > ### > if [ `whoami` = user1 ]; then > echo "" > echo -e "This is a test

RE: syntax problem in /etc/csh.login

2003-02-14 Thread Colin J. Raven
+> > if [ `whoami` = test ]; then +> > echo "" +> > echo -e "This is a test message for user test" && \ +> > echo "" +> > fi +> > ### +> > +> > and got an error upon subsequent login as user "test": +> > "if: Expression Syntax." (without parens) +>

Re: syntax problem in /etc/csh.login

2003-02-14 Thread Heinrich Rebehn
Colin J. Raven wrote: Greetings all! Trying to create a custom login message for csh users. I put the following in /etc/csh.login ### if [ `whoami` = user1 ]; then echo "" echo -e "This is a test message for user1" && \ echo "" else if [ `whoami` = use