ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Axel Kielhorn <tex@axelkielhorn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Getting the filename which is being typeset
Date: Sat, 5 Dec 2020 09:38:39 +0100	[thread overview]
Message-ID: <3976A3F5-E0C5-4CB9-BC3A-3D667400D4F5@axelkielhorn.de> (raw)
In-Reply-To: <f002b6a4-a51c-4cf1-86cc-49136373d9ee@xs4all.nl>



> Am 04.12.2020 um 10:04 schrieb Hans Hagen <j.hagen@xs4all.nl>:
> 
> On 12/4/2020 8:02 AM, Axel Kielhorn wrote:
>>> Am 01.12.2020 um 18:23 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
>>> 
>>> The following example shows the output of all commands:
>>> 
>>> \starttext
>>> \starttabulate [|T|T|]
>>> \NC \type{\jobname}           \NC \jobname           \NC\NR
>>> \NC \type{\jobfilename}       \NC \jobfilename       \NC\NR
>>> \NC \type{\jobfilesuffix}     \NC \jobfilesuffix     \NC\NR
>>> \NC \type{\inputfilename}     \NC \inputfilename     \NC\NR
>>> \NC \type{\inputfilebarename} \NC \inputfilebarename \NC\NR
>>> \NC \type{\inputfilesuffix}   \NC \inputfilesuffix   \NC\NR
>>> \NC \type{\outputfilename}    \NC \outputfilename    \NC\NR
>>> \NC \type{\operatingsystem}   \NC \operatingsystem   \NC\NR
>>> \stoptabulate
>>> \stoptext
>> On MacOS 10.13 the result of \operatingsystem is „osx-ppc“.
>> That was a surprise:-)
> maybe apples are no longer apples

They lost the Power when they became Intelligent, and now they get ARMed.

> because we cannot check for some env variable directly (at least we could not reliable when the code was written) a slower echo is used to check $HOSTTYPE and if we don't recognize something there we end up with a ppc because that was what osx started with
> 
> now, in practice this is not that important because most systems don't distinguish between 32/64 or some mix wrt paths (i might actually remove a lot of that stuff because in luamatetex we're more normalized across platforms)
> 
> the apple guesser is tricky because at least in the past there was no reliable way to figure it out, for instance uname didn't work well and we had this curious mix of 64 bit machines that osx refused to see as such (i remember that I had to root something in the old macbook to make it being seen as 64 bit instead of 32 in order to be able to update)
> 
> what does your "echo $HOSTTYPE" mention?

Melora:~ axel$ echo $HOSTTYPE
x86_64
Melora:~ axel$ uname -a
Darwin 17.7.0 Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64 x86_64

This computer thinks it is Intel based.

Greetings 
Axel
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2020-12-05  8:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01 13:45 Otared Kavian
2020-12-01 14:25 ` Tomas Hala
2020-12-01 15:20   ` Otared Kavian
2020-12-01 16:33     ` Henning Hraban Ramm
2020-12-01 17:10       ` Otared Kavian
2020-12-01 17:23         ` Wolfgang Schuster
2020-12-01 17:55           ` Otared Kavian
2020-12-01 18:47             ` Hans Hagen
2020-12-04  7:02           ` Axel Kielhorn
2020-12-04  9:04             ` Hans Hagen
2020-12-05  8:38               ` Axel Kielhorn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3976A3F5-E0C5-4CB9-BC3A-3D667400D4F5@axelkielhorn.de \
    --to=tex@axelkielhorn.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).