script question

pravin at eniac.seas.upenn.edu pravin at eniac.seas.upenn.edu
Mon May 13 15:23:24 AEST 1991


In a previous article mjt at jersey.UUCP (Mike Tietel) writes:
|In article <1991Apr10.145212.10124 at cbfsb.att.com> pfinkel at cbnewsb.cb.att.com (paul.d.finkel) writes:
|>
|>			echo "Read news[CR=yes/n] \c"
|>			read ans
|>			if [ ! "$ans" ]
|>				etc,etc.
|
|of course if you want something to work in .login (i.e., csh):
|
|        echo -n "Read news[y|n] "
|        set c=($<)
|        if ( $c != n ) then
|                rn
|        else
|                ...
|        endif

This does not work for me in my .profile file.  I get an error at the
first line.  BTW, my login shell is bash.  Does this script not work
with bash, or I am doing something wrong.

I would appreciate any help!!

thanks..
--
pravin

(215)573-4360 (h)
(215)898-3211 (w)



More information about the Comp.unix.questions mailing list