Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2003 14:40:17 +0100
From:      "Colin J. Raven" <duiker@haggis.nl>
To:        "'BSD Questions'" <freebsd-questions@FreeBSD.ORG>
Subject:   RE: syntax problem in /etc/csh.login
Message-ID:  <000001c2d42e$b3811300$1500000a@scrk.com>
In-Reply-To: <3E4CDDF9.50207@ant.uni-bremen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
<snippage>
+> > if [ `whoami` =3D 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)
+> >=20
+> > Anyone got any idea what I'm doing wrong?=20
+> > Guess: csh syntax is different from bash=20
+>=20
+> You're right!
Well, thanks!

+> > but beyond that I'm stumped.
+>=20
+> beyond that comes 'man csh'.
Oh for goodness sakes!!!!

I am sure it does but reading man csh is a 2 week exercise.....which
considering I don't normally use csh, but a few of my user opoulation
does, it's not likely that I am going to absorb all the huge amount of
information in man csh for a shell I never use personally.
=20
+> Sorry, but you have to read it yourself! ;-)
+>=20
+> Hint: As the name of the shell suggests, the syntax quite C-like.

Response to "Hint"
Most assuredly your response indicates substantial knowledge of C.
Unlike you however, I am not a programmer but "catch on quickly" to most
things.....and my post was no more than asking someone to "jumpstart me"
which usually starts me on a reading binge in FURTHER pursuit of
knowledge. Right now I have absolutely no clue as to where to begin.

On this list of all places, I did not expect the supercilious "RTFM"
response. It's uncalled for, it's unecessary and furthermore does not
speak well of your willingness to be of assistance to those less
knowledgeable than yourself. Instead it smacks of a (largely useless)
demonstration of what *you* know and others *don't* know.

I wonder...seriously....I wonder why you even elected to respond at
all???? Remaining silent would have been the elegant solution.

Regards to all - as always.
-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?000001c2d42e$b3811300$1500000a>