From Philippe: The choice of allowing TTree::Draw to take a filename is having an unplanned consequence.  We can call:         tree->Draw("myfilename.C"); We can also call         tree->Draw("$HOME/myfilename.C"); However this means that       T->Draw("Entry$") now issues      Error in <TUnixSystem::ExpandFileName>: input: Entry$, output: Entry$      Error in <TUnixSystem::ExpandFileName>: input: ...      Error in <TUnixSystem::ExpandFileName>: ...
From Philippe:
The choice of allowing TTree::Draw to take a filename is having
an unplanned consequence.  We can call:
        tree->Draw("myfilename.C");
We can also call
        tree->Draw("$HOME/myfilename.C");
However this means that
      T->Draw("Entry$")
now issues
     Error in <TUnixSystem::ExpandFileName>: input: Entry$, output: Entry$
     Error in <TUnixSystem::ExpandFileName>: input: ...
     Error in <TUnixSystem::ExpandFileName>: ...

The attached patch fix this problem.
However if the user tree has a variable name var$var (well not nice but
legal), we still get:
     T->Draw("var$var");
     Error in <TUnixSystem::ExpandFileName>: input: var$var, output: var$var
     Error in <TUnixSystem::ExpandFileName>: input: ....


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@9460 27541ba8-7e3a-0410-8455-c3a389f83636

dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT