Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!eniac.seas.upenn.edu!pravin From: pravin@eniac.seas.upenn.edu Newsgroups: comp.unix.questions Subject: Re: script question Message-ID: <42993@netnews.upenn.edu> Date: 13 May 91 05:23:24 GMT References: <1991Apr3.165501.25434@rodan.acs.syr.edu> <1991Apr10.144150.10011@cbfsb.att.com> <1991Apr10.145212.10124@cbfsb.att.com> <1991Apr12.194931.25482@jersey> Sender: news@netnews.upenn.edu Reply-To: pravin@eniac.seas.upenn.edu Organization: is there one? Lines: 30 Nntp-Posting-Host: eniac.seas.upenn.edu In a previous article mjt@jersey.UUCP (Mike Tietel) writes: |In article <1991Apr10.145212.10124@cbfsb.att.com> pfinkel@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)