aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-19 19:11:38 +0200
committerMattias Andrée <maandree@kth.se>2017-10-19 19:11:38 +0200
commit145eed7578202735a7f63623d53d1ed07c376ea0 (patch)
treed15e2b44c9ec68624cb142e270603a1cede09856
parentAdd test (diff)
downloadxtest-145eed7578202735a7f63623d53d1ed07c376ea0.tar.gz
xtest-145eed7578202735a7f63623d53d1ed07c376ea0.tar.bz2
xtest-145eed7578202735a7f63623d53d1ed07c376ea0.tar.xz
Add -e, -s, +e, and +s to manual
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--README22
-rw-r--r--xtest.112
2 files changed, 22 insertions, 12 deletions
diff --git a/README b/README
index 2e8b2ac..5ea5e02 100644
--- a/README
+++ b/README
@@ -16,34 +16,36 @@ OPTIONS
-0 Use NUL byte instead of <newline> to delimit files in
both the input and the output.
- -f | -d | -p | -hL | -S | -b | -c
+ -e File exists.
+
+ -f | -d | -p | -hL | -S | -s | -b | -c
File exists and is a (regular file [-f] | directory
[-d] | named pipe [-p] | symbolic link [-h | -L] |
- socket [-S] | block special [-b] | character special
- [-c]).
+ socket [-S] | non-empty file [-s] | block special [-b] |
+ character special [-c]).
-k | -g | -u | -r | -w | -x
File exists and has (sticky(1) [-k] | setgid(2) [-g] |
setuid(4) [-u] | read(4) [-r] | write(2) [-w] |
execute(1) [-x]) permissions.
- -t
- Input is an file descriptor and is associated with a
+ -t Input is an file descriptor and is associated with a
terminal.
- +f | +d | +p | +hL | +S | +b | +c
+ +e File does not exist.
+
+ +f | +d | +p | +hL | +S | +s | +b | +c
File does not exist or is not a (regular file [+f] |
directory [+d] | named pipe [+p] | symbolic link [+h |
- +L] | socket [+S] | block special [+b] | character
- special [+c]).
+ +L] | socket [+S] | non-empty file [+s] | block special
+ [+b] | character special [+c]).
+k | +g | +u | +r | +w | +x
File does not exist or does not has (sticky(1) [+k] |
setgid(2) [+g] | setuid(4) [+u] | read(4) [+r] |
write(2) [+w] | execute(1) [+x]) permissions.
- +t
- Input is not a file descriptor or is not associated
+ +t Input is not a file descriptor or is not associated
with a terminal.
RATIONALE
diff --git a/xtest.1 b/xtest.1
index 2c01f04..da98bec 100644
--- a/xtest.1
+++ b/xtest.1
@@ -22,7 +22,9 @@ stdout.
.It Fl 0
Use NUL byte instead of <newline> to delimit files in
both the input and the output.
-.It Fl f | Fl d | Fl p | Fl hL | Fl S | Fl b | Fl c
+.It Fl e
+File exists.
+.It Fl f | Fl d | Fl p | Fl hL | Fl S | Fl s | Fl b | Fl c
File exists and is a (regular file
.Op Fl f
| directory
@@ -33,6 +35,8 @@ File exists and is a (regular file
.Op Fl h | Fl L
| socket
.Op Fl S
+| non-empty file
+.Op Fl s
| block special
.Op Fl b
| character special
@@ -59,7 +63,9 @@ File exists and has
permissions.
.It Fl t
Input is an file descriptor and is associated with a terminal.
-.It \fB+f\fP | \fB+d\fP | \fB+p\fP | \fB+hL\fP | \fB+S\fP | \fB+b\fP | \fB+c\fP
+.It \fB+e\fP
+File does not exist
+.It \fB+f\fP | \fB+d\fP | \fB+p\fP | \fB+hL\fP | \fB+S\fP | \fB+s\fP | \fB+b\fP | \fB+c\fP
File does not exist or is not a (regular file
.Op \fB+f\fP
| directory
@@ -70,6 +76,8 @@ File does not exist or is not a (regular file
.Op \fB+h\fP | \fB+L\fP
| socket
.Op \fB+S\fP
+| non-empty file
+.Op \fB+s\fP
| block special
.Op \fB+b\fP
| character special