summaryrefslogtreecommitdiff
path: root/doc/execlineb.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-05-26 12:46:37 +0000
committerLaurent Bercot <ska@appnovation.com>2022-05-26 12:46:37 +0000
commit7b631e14a70f6c2e8dcabd2713422bc585af2703 (patch)
tree3b5d8592acc340a5d79bb6dbeaed4b719662d689 /doc/execlineb.html
parentdb5bf6b28e46da0305d13383201e3dfbf2e80178 (diff)
downloadexecline-7b631e14a70f6c2e8dcabd2713422bc585af2703.tar.xz
Rewrite el_parse.c, document the transition table
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/execlineb.html')
-rw-r--r--doc/execlineb.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/execlineb.html b/doc/execlineb.html
index fe4f0d3..f9d3e4d 100644
--- a/doc/execlineb.html
+++ b/doc/execlineb.html
@@ -133,10 +133,11 @@ newlines disappear completely. </li>
<li> <tt>\0x<em>ab</em></tt> sequences are recognized in quoted strings
and evaluate to ASCII hexadecimal number <em>ab</em>. </li>
<li> <tt>\0<em>abc</em></tt> sequences are recognized in quoted strings
-and evaluate to ASCII octal number <em>abc</em>. </li>
+and evaluate to ASCII octal number <em>abc</em>. <em>abc</em> must not
+be greater than <em>377</em>, or evaluate to 0. </li>
<li> <tt>\<em>abc</em></tt> sequences are recognized in quoted strings
and evaluate to ASCII decimal number <em>abc</em>. <em>a</em> must not
-be zero. </li>
+be zero. <em>abc</em> must not be greater than 255, or evaluate to 0. </li>
<li> A comment starts with a <tt>#</tt> and ends with the line. Comments
are not recognized inside quoted strings. </li>
<li> Anything else is an unquoted string, that can evaluate to
@@ -144,6 +145,9 @@ zero or more words. </li>
<li> Any character can be escaped in unquoted strings by prepending
it with a backslash. It works the same way in quoted strings, except
for the special sequences described above. </li>
+ <li> As a special case, an unquoted backslash at the end of a line, or at
+the end of the input, is ignored. This is to make it easier to copy
+execline fragments from a shell script. </li>
</ul>
<p>