I always use
printf(1) to print/echo the prompt.
Code:
#read -p "<Enter to Close>" nothing
printf "<Enter to Close> " ; read nothing
When I invoke the script with
$ xterm -e 'shep.sh'
the new xterm prompts me properly and only closes when I press the Enter key;
Code:
[snip]
ressure (altimeter): 29.82 in. Hg (1009 hPa)
ob: KYKM 042358Z 08004KT 10SM SCT018 BKN070 BKN100 M02/M06 A2982 RMK AO2
T10221061
cycle: 0
<Enter to Close>