prompt - print a shell prompt
SYNOPSIS
DESCRIPTION
prompt
solves the problem of the change in syntax for the UNIX
echo
command.
Originally,
echo
used
-n
to suppress printing of the newline at the ends of strings.
More recent UNIX systems require
that strings be followed by
`\\c.'
prompt
attempts to solve this dilemma by
looking for a shell variable called ECHONOCR:
if not found, or, if it is not set to
-n,
prompt
uses `\\c.'
EXAMPLE
$ prompt "Please enter your name: "
Please enter your name: _
To force the old usage, add this line to the
\&.profile
file:
$ ECHONOCR=-n
SEE ALSO