blob: 901c7452bcef0e21c02e8b7c75cf95cc1f43fc01 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<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>s6-portable-utils: the s6-unquote program</title>
<meta name="Description" content="s6-portable-utils: the s6-unquote program" />
<meta name="Keywords" content="s6-portable-utils command s6-unquote quote" />
<!-- <link rel="stylesheet" type="text/css" href="http://skarnet.org/default.css" /> -->
</head>
<body>
<p>
<a href="index.html">s6-portable-utils</a><br />
<a href="http://skarnet.org/software/">Software</a><br />
<a href="http://skarnet.org/">skarnet.org</a>
</p>
<h1> The <tt>s6-unquote</tt> program </h1>
<p>
s6-unquote unquotes a quoted string and writes it to stdout.
</p>
<h2> Interface </h2>
<pre>
s6-unquote [ -n ] [ -d <em>delim</em> ] <em>string</em>
</pre>
<ul>
<li> s6-unquote unquotes <em>string</em>, which must follow the
syntax of <a href="s6-quote.html">s6-quote</a>'s output strings </li>
<li> It prints various warning or error messages to stderr if it
cannot unquote <em>string</em> properly </li>
<li> If successful, it prints the result to stdout and exits 0 </li>
</ul>
<h2> Options </h2>
<ul>
<li> <tt>-n</tt> : do not print a trailing newline. </li>
<li> <tt>-d</tt> <em>delim</em> : a list of characters that
will be considered as delimitors (to start and end the quoted string).
By default, only the double quote is such a character. If <em>delim</em>
is the empty string, s6-unquote interprets <em>string</em> as
non-delimited, only escaped (i.e. the result of some
<tt>s6-quote -u</tt> operation). </li>
</ul>
<h2> Notes </h2>
<ul>
<li> Quoted strings can be produced via the <a href="s6-quote.html">s6-quote</a> or
<a href="s6-quote-filter.html">s6-quote-filter</a> programs. </li>
</ul>
</body>
</html>
|