On September 21, 2019 at 4:22 AM, Mojca Miklavec wrote: On Sat, 21 Sep 2019 at 01:09, Robert Krug wrote: 6) Finally, the setuptex script gives me an error message: megaera$ . /home//Context/tex/setuptex /bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad substitution but it is not hard to set the path correctly: PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export PATH This is something that I need to fix independently in the installation script. Do you have any clue what could be done to make it work properly on OpenBSD? Mojca Shell scripting has always been a mystery to me. For what it is worth, however, here is what I was able to come up with: megaera$ cat test echo "$SHELL" echo "$KSH_VERSION" SCRIPTPATH="$_" OWNPATH=$(cd -P -- "$(dirname -- "$SCRIPTPATH")" && pwd -P) echo $OWNPATH megaera$ ./test /bin/ksh @(#)PD KSH v5.2.14 99/07/13.2 /home//Temp It seems that OpenBSD uses public domain ksh also known as ksh88, as opposed to the more common ksh93. I also found on the internet the following code snippet for testing ksh versions: case "$KSH_VERSION" in (*MIRBSD*|*PD*|*LEGACY*) printf '%s\n' "$KSH_VERSION" ;; (*) [ -z "$ERRNO" ] && printf '%s\n' "${.sh.version}" || echo ksh88/86 ;; esac All that said however, while it would be nice to have setuptex work on OpenBSD also, I think anyone using it can set their own paths if they have to. Robert