I'm working on some experimental package that requires LaTeX to execute a Bash script. I'm aware of -shell-escape, etc., and it does work if I simply put the script next to the LaTeX file I'm compiling.
However, for distribution, it would be more convenient if I could just put the script into the same folder as the package (.sty) code and run it from there. Does LaTeX provide a way to add a package directory to its own shell search path?
/usr/local/texlive/2017/texmf-dist/scripts/and I guess your script associated with packagefoowould be located in/usr/local/texlive/2017/texmf-dist/scripts/foo/. – Sep 25 '17 at 13:47\write18does not search for the command in any of the TeX input directories, it simply uses the (under UNIX-ish OS’s) the standardPATHenvironment variable. Even the scripts stored in the same directory as the.texfile executing them are not found unless.is part of the currentPATH. There is no such thing as (La)TeX “own shell search path” (always AFAICT now). – GuM Sep 25 '17 at 19:09