HP-UX eval basic question

Hi,

I tried using the following on a HP-UX box in a ksh script.

export FILE=test_data_'$DATESTAMP*'.txt'
FILENAME= `eval ls -t $FILE`

The 'file' name comprises of DateStamp and TimeStamp, so I am using a wild card search to get all the files with the current date.
I then want to see all the files available, and pick the latest one, so I am using 'eval'.
But it dosent seem to work on this box.

When I try to echo the FILENAME I get a blank line.

Am I missing something?

Thanks.

Try

export FILE="test_data_${DATESTAMP}*.txt"

That did not solve the problem.
I still get a blank line, when I try to echo the Filename.

Thanks My problem got solved.
I used:

FILENAME= `eval ls -t test_data_$DATESTAMP*`

instead of

FILENAME= `eval ls -t $FILE`