>>>> "SL" == SL Baur <steve(a)xemacs.org>
writes:
SL> I have noticed that lib-src directories get added to `exec-path' but
SL> not $PATH. This is causing tmdecode to choke when decoding base64 or
SL> QP -- it cannot find mmencode:
SL> text/plain; quoted-printable -> /tmp/ab.patch
SL> /usr/local/lib/xemacs/xemacs-packages/lib-src/tmdecode: mmencode: 見つかりません[1]
SL> Process tm-file exited abnormally with code 1
SL> Shouldn't lib-src directories also get appended to $PATH? It makes
SL> the above problem go away.
No.
The dot files for the shell could just re-munge your PATH back
anyways. A Posix shell looks for $ENV.
I tried to solve this problem in the distant past by adding this hack
to all the scripts in lib-src:
PATH=${PATH:-/usr/bin:/bin}:`dirname $0 2>/dev/null`; export PATH
This hack requires that $0 contain the full path to the script, and
that dirname exists. Why would this this not be the case?
martin