I am executing this on say host1
export dn=/home/abhi
export fn=file\"\"
file_path=$dn/$fn
set -A files $(ssh host2 "eval echo $file_path")
echo files= ${files[]}
So the purpose is to store in array "files" .. the o/p of cmd [echo /home/abhi/file*] executed in host2...
this script works fine if the files r found in host2...
however if it is not found in host2..
the array "files" stores the filenames matched in host1!!
y is it so??
i dont want this to happen.. pls suggest