/usr/share/fish/man/man1/while.1 is in fish-common 2.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | .TH "while" 1 "Sun Dec 11 2016" "Version 2.4.0" "fish" \" -*- nroff -*-
.ad l
.nh
.SH NAME
\fBwhile\fP -- perform a command multiple times
.PP
.SS "Synopsis"
.PP
.nf
\fBwhile\fP CONDITION; COMMANDS\&.\&.\&.; \fBend\fP
.fi
.PP
.SS "Description"
\fCwhile\fP repeatedly executes \fCCONDITION\fP, and if the exit status is 0, then executes \fCCOMMANDS\fP\&.
.PP
If the exit status of \fCCONDITION\fP is non-zero on the first iteration, \fCCOMMANDS\fP will not be executed at all\&.
.PP
You can use \fC\fCand\fP\fP or \fC\fCor\fP\fP for complex conditions\&. Even more complex control can be achieved with \fCwhile true\fP containing a \fCbreak\fP\&.
.SS "Example"
.PP
.nf
\fBwhile\fP test -f foo\&.txt; \fBor\fP \fBtest\fP -f bar\&.txt ; \fBecho\fP file exists; \fBsleep\fP 10; \fBend\fP
outputs 'file exists' at 10 second intervals as long as the file foo\&.txt or bar\&.txt exists\&.
.fi
.PP
|