The symbolic link yyy points to zzz. I want to get zzz given yyy. The follwing code does it if ypu have bash. print (io.popen"ls -l yyy":read():match"->%s*(.*)$") Is there a system-independent way? Tried lfs; failed.