[NTG-context] OpenBSD install broken

Robert Krug destiny6 at mac.com
Mon Sep 23 22:38:23 CEST 2019

On September 21, 2019 at 4:22 AM, Mojca Miklavec <mojca.miklavec.lists at gmail.com> wrote:

On Sat, 21 Sep 2019 at 01:09, Robert Krug wrote:

6) Finally, the setuptex script gives me an error message:

megaera$ . /home/<name>/Context/tex/setuptex
/bin/ksh: /home/<name>/Context/tex/setuptex[163]: ${.sh.file}": bad substitution

but it is not hard to set the path correctly:

PATH=$PATH\:/home/<name>/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?


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"
OWNPATH=$(cd -P -- "$(dirname -- "$SCRIPTPATH")" && pwd -P)

megaera$ ./test
@(#)PD KSH v5.2.14 99/07/13.2

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 ;;

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190923/b2605256/attachment.html>

More information about the ntg-context mailing list