From: Pavan Ghatty (pavan.vmd_at_gmail.com)
Date: Mon Jul 25 2011 - 13:51:53 CDT

Hello All,
I have one of the following two files in my workdir. protein.pdb or
edit_protein.pdb

I would like to do the following:
1. ls *.pdb
2. mol new [ls*.pdb]

This clearly doesn't work.
I tried to see if I could at least select the file using; ls *.pdb.
---------------
vmd > ls *.pdb
/bin/ls: cannot access *.pdb: No such file or directory
child process exited abnormally
---------------
I then found out that this works;
eval ls [glob *.pdb]

But then the following does not work;
mol new [eval ls [glob *.pdb]]
nor does this
mol load pdb [eval ls [glob *.pdb]]
They both die with this error;
Warning) Unable to ascertain filetype from filename ''; assuming pdb.

Can somebody help me out here?
Thanks.