Hello,
I have following problem. I have Centos 5.8 ( Final ) on Virtual Box.
I noticed very strange behavior of the terminals when resizing them.
My default shell is tcsh .
Let's assume that we have trial script try.csh with text in it:
#! /bin/tcsh -f
# Trial script
echo -n "Enter some value: "
set tmp = $<
if (${tmp} == "") then
echo "Only key [Enter] is typed"
else
echo "The entered value = ${tmp} "
endif
exit 0
If I execute the command
./try.csh
First following text appears:
Enter some value:
If now I resize the terminal nothing happens, which should be the case.
But if I execute the command
source ./try.csh
First same text appears:
Enter some value:
And now if I again change the size of the terminal the text is changed to:
Enter some value: Only key [Enter] is typed
So it seems that sourced program considers resizing of the terminal like as [ Enter ] key is typed. In the company where I work we have RedHat5.3 servers and RedHat4.7 server, on the RH5.3 this problem is also existing, which is not the case for RH4.7 ones.
Please help me to solve this issue!
Best regards,
tyanata