Prompting for yes/no in csh
Rich Salz
rsalz at bbn.com
Thu Jan 10 02:13:13 AEST 1991
In <1991Jan8.204745.16927 at informix.com> dberg at informix.com (David I. Berg) writes:
> echo -n "This is my question. What is your answer? [y/n] (n): "
I have found that
echo "say what?" | tr -d '\012'
is the most portable way to handle both
echo -n
and echo stuff\c
/r$
--
Please send comp.sources.unix-related mail to rsalz at uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.
More information about the Comp.unix.shell
mailing list