<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?action=history&amp;feed=atom&amp;title=Programmer_Guide%2FCommand_Reference%2FMACROX</id>
	<title>Programmer Guide/Command Reference/MACROX - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?action=history&amp;feed=atom&amp;title=Programmer_Guide%2FCommand_Reference%2FMACROX"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;action=history"/>
	<updated>2026-05-07T02:53:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=6602&amp;oldid=prev</id>
		<title>Christian at 14:59, 25 April 2014</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=6602&amp;oldid=prev"/>
		<updated>2014-04-25T14:59:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:59, 25 April 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes the macro &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; &amp;#039;&amp;#039;in the current variable environment&amp;#039;&amp;#039;, passing it the arguments specified by &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt;. Any changes the macro does to the environment will persist after its execution. This includes any unwanted changes, so be careful (for a different behaviour, see below, or directly refer to the {{STX}} statements &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/MACRO|MACRO]]&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/SHELL|SHELL]]&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes the macro &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; &amp;#039;&amp;#039;in the current variable environment&amp;#039;&amp;#039;, passing it the arguments specified by &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt;. Any changes the macro does to the environment will persist after its execution. This includes any unwanted changes, so be careful (for a different behaviour, see below, or directly refer to the {{STX}} statements &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/MACRO|MACRO]]&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/SHELL|SHELL]]&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see the &amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt; command). The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;. For more information on argument passing, and parsing, see [[Programmer_Guide/Concepts/Argument_Passing|Argument Passing]]. For a broader information on macro programming, see [[XXX|Script Programming in {{STX}}]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see the &amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt; command). The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;. For more information on argument passing, and parsing, see [[Programmer_Guide/Concepts/Argument_Passing|Argument Passing]]. For a broader information on macro programming, see [[XXX|Script Programming in {{STX}}&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] or [[Programmer_Guide/STx_Guru|Becoming an S_TOOLS-STx Guru (in 240.918 simple steps)&lt;/ins&gt;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note again that the &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes your subroutine in the very execution environment of the caller, meaning that any side-effects your subroutine may have to your local variables will persist. This is often dangerous, and not normally considered a healthy style of programming, but, obviously, there are cases where it is what you want.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note again that the &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes your subroutine in the very execution environment of the caller, meaning that any side-effects your subroutine may have to your local variables will persist. This is often dangerous, and not normally considered a healthy style of programming, but, obviously, there are cases where it is what you want.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Nevertheless, normally you will prefer having your subroutine executed in a separate execution environment. This is done with the {{STX}} command &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/MACRO|MACRO]]&amp;lt;/code&amp;gt; (note the missing character &amp;quot;X&amp;quot;). If you want to separate the subroutine even more thoroughly from your current environment, you may even have it executed by a separate instance of the {{STX}} shell (i.e. the {{STX}} command interpreter), by using the &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/SHELL|SHELL]]&amp;lt;/code&amp;gt; command for executing the subroutine. In this case, your subroutine will find start its existence in a clean environment, without local variables being inherited from the caller.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Nevertheless, normally you will prefer having your subroutine executed in a separate execution environment. This is done with the {{STX}} command &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/MACRO|MACRO]]&amp;lt;/code&amp;gt; (note the missing character &amp;quot;X&amp;quot;). If you want to separate the subroutine even more thoroughly from your current environment, you may even have it executed by a separate instance of the {{STX}} shell (i.e. the {{STX}} command interpreter), by using the &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/SHELL|SHELL]]&amp;lt;/code&amp;gt; command for executing the subroutine. In this case, your subroutine will find start its existence in a clean environment, without local variables being inherited from the caller.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christian</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=2949&amp;oldid=prev</id>
		<title>Christian at 16:38, 5 April 2011</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=2949&amp;oldid=prev"/>
		<updated>2011-04-05T16:38:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:38, 5 April 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  MACROX &amp;lt;var&amp;gt;macroname macroarguments&amp;lt;/var&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  MACROX &amp;lt;var&amp;gt;macroname macroarguments&amp;lt;/var&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes the macro &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; &#039;&#039;in the current variable environment&#039;&#039;, passing it the arguments specified by &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt;. Any changes the macro does to the environment will persist after its execution. This includes any unwanted changes, so be careful.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes the macro &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; &#039;&#039;in the current variable environment&#039;&#039;, passing it the arguments specified by &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt;. Any changes the macro does to the environment will persist after its execution. This includes any unwanted changes, so be careful &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(for a different behaviour, see below, or directly refer to the {{STX}} statements &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/MACRO|MACRO]]&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/SHELL|SHELL]]&amp;lt;/code&amp;gt;)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see the &amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt; command). The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;. For more information on argument passing, and parsing, see [[Programmer_Guide/Concepts/Argument_Passing|Argument Passing]]. For a broader information on macro programming, see [[XXX|Script Programming in {{STX}}]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see the &amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt; command). The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;. For more information on argument passing, and parsing, see [[Programmer_Guide/Concepts/Argument_Passing|Argument Passing]]. For a broader information on macro programming, see [[XXX|Script Programming in {{STX}}]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christian</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=2946&amp;oldid=prev</id>
		<title>Christian at 16:33, 5 April 2011</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=2946&amp;oldid=prev"/>
		<updated>2011-04-05T16:33:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:33, 5 April 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see the &amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt; command). The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;. For more information on argument passing, and parsing, see [[Programmer_Guide/Concepts/Argument_Passing|Argument Passing]]. For a broader information on macro programming, see [[XXX|Script Programming in {{STX}}]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see the &amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt; command). The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;. For more information on argument passing, and parsing, see [[Programmer_Guide/Concepts/Argument_Passing|Argument Passing]]. For a broader information on macro programming, see [[XXX|Script Programming in {{STX}}]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note again that the &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes your subroutine in the very execution environment of the caller, meaning that any side-effects your subroutine may have to your local variables will persist. This is often dangerous, and not normally considered a healthy style of programming, but, obviously, there are cases where it is what you want.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Nevertheless, normally you will prefer having your subroutine executed in a separate execution environment. This is done with the {{STX}} command &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/MACRO|MACRO]]&amp;lt;/code&amp;gt; (note the missing character &quot;X&quot;). If you want to separate the subroutine even more thoroughly from your current environment, you may even have it executed by a separate instance of the {{STX}} shell (i.e. the {{STX}} command interpreter), by using the &amp;lt;code&amp;gt;[[Programmer_Guide/Command_Reference/SHELL|SHELL]]&amp;lt;/code&amp;gt; command for executing the subroutine. In this case, your subroutine will find start its existence in a clean environment, without local variables being inherited from the caller.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christian</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=2943&amp;oldid=prev</id>
		<title>Christian at 16:26, 5 April 2011</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=2943&amp;oldid=prev"/>
		<updated>2011-04-05T16:26:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:26, 5 April 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes the macro &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; &amp;#039;&amp;#039;in the current variable environment&amp;#039;&amp;#039;, passing it the arguments specified by &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt;. Any changes the macro does to the environment will persist after its execution. This includes any unwanted changes, so be careful.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes the macro &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; &amp;#039;&amp;#039;in the current variable environment&amp;#039;&amp;#039;, passing it the arguments specified by &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt;. Any changes the macro does to the environment will persist after its execution. This includes any unwanted changes, so be careful.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see &amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt;)The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/ins&gt;&amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;command&lt;/ins&gt;)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &lt;/ins&gt;The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;. For &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;more &lt;/ins&gt;information &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on argument passing, &lt;/ins&gt;and parsing&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, see [[Programmer_Guide/Concepts/Argument_Passing|Argument Passing]]. For a broader information on macro programming, &lt;/ins&gt;see [[XXX|Script Programming in {{STX}}]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For information &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;about macro definitions (header) &lt;/del&gt;and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;argument &lt;/del&gt;parsing see &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/del&gt;[[XXX|Script Programming in {{STX}}]]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Many macros use the call-format: name command arguments (e.g. &amp;lt;code&amp;gt;MSGBOX MSG text&amp;lt;/code&amp;gt;). If you want to pass quoted arguments to such a macro, use the format &amp;lt;code&amp;gt;MSGBOX &#039;MSG text&#039;&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;MSGBOX MSG &#039;text&#039;&amp;lt;/code&amp;gt;. This is necessary because the argument string &amp;lt;code&amp;gt;MSG &#039;text&#039;&amp;lt;/code&amp;gt; is passed (after command-line processing) as &amp;lt;code&amp;gt;MSGtext&amp;lt;/code&amp;gt; to the macro.If a new shell is called to run a macro, the id (8 hex digits) is assigned to the variable &amp;lt;code&amp;gt;#SHELL&amp;lt;/code&amp;gt; of the caller. In the new shell, the variable &amp;lt;code&amp;gt;SHELL&amp;lt;/code&amp;gt; is set to &#039;&amp;lt;code&amp;gt;this_shellid caller_shellid&amp;lt;/code&amp;gt;&#039;. The two variables can be used to identify the shells in communication messages.It is not necessary to use the command &amp;lt;code&amp;gt;MACRO&amp;lt;/code&amp;gt; explicitly, because the interpreter tries to execute all &#039;non-shell&#039; commands as a macro. This means the command line &amp;lt;code&amp;gt;MACRO macroname&amp;lt;/code&amp;gt; is equivalent to command line &amp;lt;code&amp;gt;macroname&amp;lt;/code&amp;gt;&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Christian</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=2937&amp;oldid=prev</id>
		<title>Christian: Created page with &#039;{{DISPLAYTITLE:{{SUBPAGENAME}}}}  MACROX &lt;var&gt;macroname macroarguments&lt;/var&gt;  The &lt;code&gt;MACROX&lt;/code&gt; command executes the macro &lt;var&gt;macroname&lt;/var&gt; &#039;&#039;in the current variable en…&#039;</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kfs.oeaw.ac.at/stx/docs/wiki/index.php?title=Programmer_Guide/Command_Reference/MACROX&amp;diff=2937&amp;oldid=prev"/>
		<updated>2011-04-05T16:21:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{DISPLAYTITLE:{{SUBPAGENAME}}}}  MACROX &amp;lt;var&amp;gt;macroname macroarguments&amp;lt;/var&amp;gt;  The &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes the macro &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; &amp;#039;&amp;#039;in the current variable en…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:{{SUBPAGENAME}}}}&lt;br /&gt;
 MACROX &amp;lt;var&amp;gt;macroname macroarguments&amp;lt;/var&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;MACROX&amp;lt;/code&amp;gt; command executes the macro &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; &amp;#039;&amp;#039;in the current variable environment&amp;#039;&amp;#039;, passing it the arguments specified by &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt;. Any changes the macro does to the environment will persist after its execution. This includes any unwanted changes, so be careful.&lt;br /&gt;
&lt;br /&gt;
The macro source code &amp;lt;var&amp;gt;macroname&amp;lt;/var&amp;gt; must be loaded (see &amp;lt;code&amp;gt;[[User Guide/Workspace/Pre-configured profiles|LOAD]]&amp;lt;/code&amp;gt;)The &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; passed to the macro are stored in the variable &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt; of the called macro. Because of the special command-line processing in {{STX}}, all string replacements are applied to and all special parsing information (e.g. quotation marks) are removed from &amp;lt;var&amp;gt;macroarguments&amp;lt;/var&amp;gt; before it is assigned to &amp;lt;code&amp;gt;#ARGV&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For information about macro definitions (header) and argument parsing see the [[XXX|Script Programming in {{STX}}]]. Many macros use the call-format: name command arguments (e.g. &amp;lt;code&amp;gt;MSGBOX MSG text&amp;lt;/code&amp;gt;). If you want to pass quoted arguments to such a macro, use the format &amp;lt;code&amp;gt;MSGBOX &amp;#039;MSG text&amp;#039;&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;MSGBOX MSG &amp;#039;text&amp;#039;&amp;lt;/code&amp;gt;. This is necessary because the argument string &amp;lt;code&amp;gt;MSG &amp;#039;text&amp;#039;&amp;lt;/code&amp;gt; is passed (after command-line processing) as &amp;lt;code&amp;gt;MSGtext&amp;lt;/code&amp;gt; to the macro.If a new shell is called to run a macro, the id (8 hex digits) is assigned to the variable &amp;lt;code&amp;gt;#SHELL&amp;lt;/code&amp;gt; of the caller. In the new shell, the variable &amp;lt;code&amp;gt;SHELL&amp;lt;/code&amp;gt; is set to &amp;#039;&amp;lt;code&amp;gt;this_shellid caller_shellid&amp;lt;/code&amp;gt;&amp;#039;. The two variables can be used to identify the shells in communication messages.It is not necessary to use the command &amp;lt;code&amp;gt;MACRO&amp;lt;/code&amp;gt; explicitly, because the interpreter tries to execute all &amp;#039;non-shell&amp;#039; commands as a macro. This means the command line &amp;lt;code&amp;gt;MACRO macroname&amp;lt;/code&amp;gt; is equivalent to command line &amp;lt;code&amp;gt;macroname&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Christian</name></author>
	</entry>
</feed>