Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bash script question on \c

Status
Not open for further replies.

unixstudent

Technical User
Oct 9, 2000
4
US
\c doesn't seem to be working in my script to leave cursor at the end of an echo directly followed by a read command. any suggestions?

echo "Place cursor here: \c"
read variable

will render as:

Place cursor here: \c
(cursor here)
 
Are you picking up a version of [tt]echo[/tt] that's built into the shell?

Try specifying the full path when you call [tt]echo[/tt], like this [tt]/usr/bin/echo[/tt] (or wherever [tt]echo[/tt] is stored on your system)

Mike
michael.j.lacey@ntlworld.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top