Re: Example .rootrc file for Windows NT

Valery Fine (fine@mail.cern.ch)
Fri, 17 Oct 1997 10:53:15 +0100


On 17 Oct 97 at 9:59, Nick van Eijndhoven wrote:

> > 3) I couldn't tell... is the "~/rootlib" file syntax (the ~ part, your home
> > directory) recognized on windows? I would guess not, but perhaps
> > translation happens someplace I didn't see.

Under UNIX it is done by passing the "native" UNIX "echo" command
been followed with a file name string to the "native" UNIX shell and
"catching" the "Native" UNIX shell output via the "pipe"(see
TUnixSystem::ExpandPathName() method). It is UNIX understands just
the both forms, namely $(env_name) and $env_name and ~ as well. First
is done by ROOT itself, the second one via that UNIX echo command.
Under Window to keep the same syntax a special parser should be
involved instead. It was on my "todo" list.

> The ~ syntax is also used in
> > this example file. I replaced the "~" with $(HOME) and things seemed to
> > work just fine.
Valery
Dr. Valeri Faine (Valery Fine)
------------ ------------- Phone: +41 22 767 4921
CERN FAX : +41 22 767 7155
CH-1211 Geneva, 23 mailto:fine@mail.cern.ch
Switzerland http://nicewww.cern.ch/~fine