Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!uunet!ns-mx!umaxc.weeg.uiowa.edu!dkeber From: dkeber@umaxc.weeg.uiowa.edu (Dave Keber) Newsgroups: comp.unix.shell Subject: Prompting for yes/no in csh Message-ID: <3821@ns-mx.uiowa.edu> Date: 8 Jan 91 15:29:31 GMT Sender: news@ns-mx.uiowa.edu Reply-To: dkeber@umaxc.weeg.uiowa.edu (Dave Keber) Distribution: usa Organization: U of Iowa, Iowa City, IA Lines: 11 This may sound like a stupid question to you Unix wizards, but I'm just getting started in writing shell scripts and I would like to know: What is the easiest way to prompt for a yes/no (or any string/number, etc.) from a csh shell script? I thought of writing a short C program that asks for input then writing the answer to standard output, and then calling that program in my shell script, but that seems a rather convoluted way of going about it...or is it? Dave