Helpful Information
 
 
Category: UNIX Help
Strange problem with echo! and read

I am new to scripting and i have a strange problem with read
I have the following script

...
..
echo "Testing echo..."
VAL=y
echo "Read value \c"
read VAL
..
..

What could be the problem if i see the "Testing echo" displayed in screen but "Read value" is not displayed.
When i press enter it echoes "Read value" as well as takes enter as input for the read..
All statements get executed properly but whenever i say echo follwed by a read command i dont see the statement to be echoed...before read

I am sorry that this situation may not occur that easily but can you please pour in your ideas as to when there is a chance for this problem to happen..

Many Thanx in Advance










privacy (GDPR)