From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105100 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Krug Newsgroups: gmane.comp.tex.context Subject: Re: OpenBSD install broken Date: Mon, 23 Sep 2019 20:38:23 -0000 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5547661993071052605==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="245159"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Mojca Miklavec To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 23 22:45:38 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCVDG-0011e1-9T for gctc-ntg-context-518@m.gmane.org; Mon, 23 Sep 2019 22:45:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DE6A1160D0B; Mon, 23 Sep 2019 22:45:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P4cutrUxYqVC; Mon, 23 Sep 2019 22:45:01 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C84AB16119B; Mon, 23 Sep 2019 22:45:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9DF81161016 for ; Mon, 23 Sep 2019 22:45:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XphVBuTiic_N for ; Mon, 23 Sep 2019 22:45:00 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.49; helo=pv50p00im-ztdg10012101.me.com; envelope-from=destiny6@mac.com; receiver= X-Greylist: delayed 393 seconds by postgrey-1.36 at zapf.ntg.nl; Mon, 23 Sep 2019 22:44:59 CEST Original-Received: from pv50p00im-ztdg10012101.me.com (pv50p00im-ztdg10012101.me.com [17.58.6.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B9394160D0B for ; Mon, 23 Sep 2019 22:44:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1569271104; bh=imOxq4csCracc4psHM3K9XdphkFfWFzGFuiZObGVbMY=; h=To:From:Subject:Date:Message-id:Content-Type; b=TztAwWOWKx5PXcGfp6lWdWnzVVDnRZqUzN8mzfwFVeeiPNjizGOqxuR+32+Pp/AwE 56K4AfWJ69n/xHKU/LgvSzDWwCkVZHu2s+sYl4zbQihO299KbBrz0+tP51oFn7SEDN FLzQ4FDh2NMH3Eox4VZUL84QSIGLmknfek/NLeNEIAwZhn4oj4v1gnjxQ35zHlwwJX nKzFeJEpB3JFexEq+uJHVUm3rtWdnfi0o3WLYOZ5FpId2rQy7ePY5117Ma+CLya27X r+4GIXvDjeerIBdkDcGAsYDxXJMy8OEoCoMG05zpezqVFtYnhCd2l8KBnIF4nqHars PaW1nk8dUy8xA== Original-Received: from localhost (mr36p72im-hyfv09083001.me.com [10.44.95.73]) by pv50p00im-ztdg10012101.me.com (Postfix) with ESMTP id 2516A840AC6; Mon, 23 Sep 2019 20:38:24 +0000 (UTC) X-Mailer: iCloud MailClient1917Project69 MailServer.10000-Famine1917-0-7136e28c2133 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-09-23_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909230173 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105100 Archived-At: --===============5547661993071052605== Content-Type: multipart/alternative; boundary=Apple-Webmail-42--29e12378-1ede-485c-879d-0faeab2205c9 --Apple-Webmail-42--29e12378-1ede-485c-879d-0faeab2205c9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8; format=flowed =0A=0A=0AOn September 21, 2019 at 4:22 AM, Mojca Miklavec wrote:=0A=0A=0A=0AOn Sat, 21 Sep 2019 at 01:09, Robert Kr= ug wrote:=0A=0A=0A=0A6) Finally, the setuptex script gives me an error mes= sage:=0A=0A=0Amegaera$ . /home//Context/tex/setuptex=0A/bin/ksh: /ho= me//Context/tex/setuptex[163]: ${.sh.file}": bad substitution=0A=0A=0A= but it is not hard to set the path correctly:=0A=0A=0APATH=3D$PATH\:/home/= /Context/tex/texmf-openbsd6.5-amd64/bin ; export PATH=0A=0AThis is s= omething that I need to fix independently in the installation=0Ascript. Do= you have any clue what could be done to make it work=0Aproperly on OpenBS= D?=0A=0AMojca=0A=0AShell scripting has always been a mystery to me. For wh= at it is worth,=0Ahowever, here is what I was able to come up with:=0A=0Am= egaera$ cat test=0Aecho "$SHELL"=0Aecho "$KSH_VERSION"=0ASCRIPTPATH=3D"$_"= =0AOWNPATH=3D$(cd -P -- "$(dirname -- "$SCRIPTPATH")" && pwd -P)=0Aecho $O= WNPATH=0A=0Amegaera$ ./test=0A/bin/ksh=0A@(#)PD KSH v5.2.14 99/07/13.2=0A/= home//Temp=0A=0AIt seems that OpenBSD uses public domain ksh also kn= own as ksh88, as=0Aopposed to the more common ksh93. I also found on the i= nternet the=0Afollowing code snippet for testing ksh versions:=0A=0Acase "= $KSH_VERSION" in=0A(*MIRBSD*|*PD*|*LEGACY*) printf '%s\n' "$KSH_VERSION" ;= ;=0A(*) [ -z "$ERRNO" ] && printf '%s\n' "${.sh.version}" || echo ksh88/86= ;;=0Aesac=0A=0AAll that said however, while it would be nice to have setu= ptex work on=0AOpenBSD also, I think anyone using it can set their own pat= hs if they=0Ahave to.=0A=0ARobert=0A=C2=A0 --Apple-Webmail-42--29e12378-1ede-485c-879d-0faeab2205c9 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--29e12378-1ede-485c-879d-0faeab2205c9 --Apple-Webmail-86--29e12378-1ede-485c-879d-0faeab2205c9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8;


On September 21, 2019 at 4:22 AM, Mojca Miklavec &= lt;mojca.miklavec.lists@gmail.com> wrote:

On Sat, 21 Sep 201= 9 at 01:09, Robert Krug wrote:

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

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

but it is not hard to set the path correctly= :

PATH=3D$P= ATH\:/home/<name>/Context/tex/texmf-openbsd6.5-amd64/bin ; export PA= TH

This is something that I need to fix independently in t= he 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. F= or what it is worth,
however, here is what I was able to come up with:<= br>
megaera$ cat test
echo "$SHELL"
echo "$KSH_VERSION"
SCRIPT= PATH=3D"$_"
OWNPATH=3D$(cd -P -- "$(dirname -- "$SCRIPTPATH")" &&am= p; pwd -P)
echo $OWNPATH

megaera$ ./test
= /bin/ksh
@(#)PD KSH v5.2.14 99/07/13.2
/home/<name>/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
foll= owing 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 ;;<= br>esac

All that said however, while it would be nice to have setup= tex work on
OpenBSD also, I think anyone using it can set their own pat= hs if they
have to.

Robert
 
--Apple-Webmail-86--29e12378-1ede-485c-879d-0faeab2205c9-- --Apple-Webmail-42--29e12378-1ede-485c-879d-0faeab2205c9-- --===============5547661993071052605== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5547661993071052605==--