Input and relative paths

Nicola <[email protected]>
Newsgroups gmane.comp.tex.metapost
Message-ID <[email protected]>
Quick question: is using relative paths with (back)slashes portable?

I see that both

    input a/b/c.mp
    input a\b\c.mp

work in macOS (so, I suppose, in *nix systems in general).
Can you please confirm that they both work in Windows, too?

Also, is it correct that the input command above searches only

(a) in the directory from which mpost is launched, but not in its
    subdirectories (so, it would find ./a/b/c.mp, but not ./x/y/a/b/c.mp);
(b) in a set of predefined directories, like /texlive/texmf/metapost,
    *and* in all of its subdirectories (so, it would find both
    /texlive/metapost/a/b/c.mp and /texlive/metapost/x/y/a/b/c.mp);

in that order? And this also in Windows?

Nicola


--
http://tug.org/metapost/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.