Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbfsb!cbnewsb.cb.att.com!pfinkel From: pfinkel@cbnewsb.cb.att.com (paul.d.finkel) Newsgroups: comp.unix.questions Subject: Re: script question Message-ID: <1991Apr10.144150.10011@cbfsb.att.com> Date: 10 Apr 91 14:41:50 GMT References: <1991Apr3.165501.25434@rodan.acs.syr.edu> Sender: news@cbfsb.att.com Distribution: na Organization: World Wide Cold Cuts Lines: 23 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 >of: > Read new (y/n)? > if "y" then rn -s15 > else [prompt] How about: echo "Read news[CR=y/n]? \c" read ans if [ "$ans" = "" ] then news else : fi -- Family motto: Semper ubi, sub ubi. mail: attmail!pfinkel "My name is Fink, whaddaya think, I press pants for nothing?" (Punch line to corny joke that my father always told!)