ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Axel Kielhorn <tex@axelkielhorn.de>
Subject: Re: Getting the filename which is being typeset
Date: Fri, 4 Dec 2020 10:04:06 +0100	[thread overview]
Message-ID: <f002b6a4-a51c-4cf1-86cc-49136373d9ee@xs4all.nl> (raw)
In-Reply-To: <3EC28CA5-F4A9-4E71-B5F2-F15C819610BD@axelkielhorn.de>

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

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?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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-04  9:04 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 [this message]
2020-12-05  8:38               ` Axel Kielhorn

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=f002b6a4-a51c-4cf1-86cc-49136373d9ee@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    --cc=tex@axelkielhorn.de \
    /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).