summaryrefslogtreecommitdiffstats
path: root/smenu.1
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2017-12-30 16:52:52 +0100
committerpgen <p.gen.progs@gmail.com>2017-12-30 17:21:34 +0100
commit0b00ae074bd2686f2bae5849b71071f1f2b8bddc (patch)
treedb381c757f57573b9c00ba0ad6d625fe7b27f4fb /smenu.1
parentb906206c3a00c0c8815d565d03049f1c6c3a6201 (diff)
Add a pass to try to remove empty words due to substitution.
The use of -S/-E/-I can lead to empty words, they must be deleted in all cases except in column mode. In column mode, substitutions involving empty words can lead to misalignments, so it is necessary to prohibit them and terminate the program. These substitutions have to be made with other tools before using this utility.
Diffstat (limited to 'smenu.1')
-rw-r--r--smenu.112
1 files changed, 12 insertions, 0 deletions
diff --git a/smenu.1 b/smenu.1
index 0162443..39e512e 100644
--- a/smenu.1
+++ b/smenu.1
@@ -513,6 +513,18 @@ substituted by any other character except \fISPACE\fP, \fI\\t\fP,
In the four previous options, \fIregex\fP is a \fBPOSIX\fP
\fBE\fPxtended \fBR\fPegular \fBE\fPxpression.
For details, please refer to the \fBregex\fP manual page.
+.P
+.RE
+If a post-processing action (\fB-S\fP/\fB-I\fP/\fB-E\fP) results in an
+empty or a word containing only spaces, then we have two cases:
+.RS
+.IP "in column mode:"
+Substitutions involving empty words can lead to misalignments, so it is
+necessary to prohibit them and terminate the program.
+These substitutions have to be made with other tools before using this
+utility.
+.IP "otherwise:"
+The word is simply removed.
.RE
.IP "\fB-A\fP \fIregex\fP"
In column mode, forces all words matching the given regular expression