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
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
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
+> > 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)
+>
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