Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Big Problem with playing DVD's



On Fri, 26 Apr 2002, Clemens Kirchgatterer (CK) wrote:

CK> Sergei Haller <Sergei.Haller@math.uni-giessen.de> wrote:
CK>
CK> > On Fri, 26 Apr 2002, Clemens Kirchgatterer (CK) wrote:
CK> >
CK> > CK> i wrote: the scope of shell variable is limited to the shell it is
CK> > CK> defined in, as long as it isn't "exported". i don't know, if this
CK> > CK> is of any matter in the case of DVDCSS_METHOD.
CK> >
CK> > if you don't export it, then vdr doesn't know anything about that
CK> > variable. (the same as if you didn't set this variable at all)
CK>
CK> i'm not so sure about that, because vdr will get started from within the
CK> same shell. at least as long as vdr gets started in the same script as
CK> the DVDCSS_METHOD variable gets defined. but you may be right! :-)

I always thought that any program called from within a shell is called in
an own environment. here again a small test:

--- print.c ----------
#include <stdlib.h>

int main(void) {
  printf("%s\n", getenv("TEST"));
  return 0;
}
----------------------

I compiled it and replaced the `print' shell script by it, with following
result (`set1' and `set2' as before):

> ./set1
(null)
> ./set2
hallo
>


c ya
        Sergei
--
--------------------------------------------------------------------
         eMail:       Sergei.Haller@math.uni-giessen.de
--------------------------------------------------------------------
Be careful of reading health books, you might die of a misprint.
                -- Mark Twain




Home | Main Index | Thread Index