[NTG-context] Running a couple of context statements in a linux bash shell heredocument?

Henri Menke henri at henrimenke.de
Thu Apr 1 16:37:58 CEST 2021


On Thu, 2021-04-01 at 16:23 +0200, Alexander Rosenstock wrote:
> Hi all,
>  
> is it possible running a couple of context statements as a
> heredocument integrated in a - for example linux bash - shellscript?
> Do you have any experience or idea or alternative solution?
>  

This will work, but only if file_that_does_not_exist (possibly with
additional file extensions) does not exist:

$ cat <<'EOF' | context file_that_does_not_exist
\starttext
Hello world!
\stoptext
EOF


Cheers, Henri

> If needed, I will deliver a - not yet runnable - minimal example
> here, of course ...
>  
> Thanks a lot in advance for any support!
>  
> Alexander
> _____________________________________________________________________
> ______________
> If your question is of interest to others as well, please add an
> entry to the Wiki!
> 
> maillist : ntg-context at 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
> _____________________________________________________________________
> ______________



More information about the ntg-context mailing list