Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!ucsd!nosc!crash!orbit!jersey!mjt From: mjt@jersey (Mike Tietel) Newsgroups: comp.unix.questions Subject: Re: script question Message-ID: <1991Apr12.194931.25482@jersey> Date: 12 Apr 91 19:49:31 GMT References: <1991Apr3.165501.25434@rodan.acs.syr.edu> <1991Apr10.144150.10011@cbfsb.att.com> <1991Apr10.145212.10124@cbfsb.att.com> Reply-To: mjt@jersey.UUCP (Mike Tietel) Distribution: na Organization: Euler Solutions, Inc., Minneapolis, MN USA Lines: 27 In article <1991Apr10.145212.10124@cbfsb.att.com> pfinkel@cbnewsb.cb.att.com (paul.d.finkel) writes: >In article <1991Apr3.165501.25434@rodan.acs.syr.edu> ldstern@rodan.acs.syr.edu (Larry Stern) writes: >>I have a simple script question I can't seem to get answered here. I would >>like my .login file to ask me if I want to read news, something to the effect ^^^^^^ > >How about: > > 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 -- Mike Tietel mjt@jersey.orb.mn.org Euler Solutions, Inc. ..!orbit!jersey!mjt