about summary refs log tree commit diff
path: root/doc/define.html
blob: 16bce612ad084dfc86046f8977f0fd2a0c74fcfc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <meta http-equiv="Content-Language" content="en" />
 <title>execline: the define command</title>
 <meta name="Description" content="execline: the define command" />
 <meta name="Keywords" content="execline command define" />
 <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
</head>
<body>

<p>
<a href="index.html">execline</a><br />
<a href="//skarnet.org/software/">Software</a><br />
<a href="//skarnet.org/">skarnet.org</a>
</p>

<h1> The <tt>define</tt> program </h1>

<p>
<tt>define</tt> replaces a literal with a value, then executes
another program.
</p>

<h2> Interface </h2>

<pre>
     define [ -s ] [ -C | -c ] [ -N | -n ] [ -d <em>delim</em> ] <em>variable</em> <em>value</em> <em>prog...</em>
</pre>

<ul>
 <li> <tt>define</tt> performs
<a href="el_substitute.html">variable substitution</a> on
<em>prog...</em>, using <em>variable</em> as key and
<em>value</em> as value.
<tt>define</tt>'s options are used to <a href="el_transform.html">control
the substitution mechanism</a>. </li>
 <li> <tt>define</tt> then execs into the modified <em>prog...</em>. </li>
</ul>

</body>
</html>