=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.663 retrieving revision 1.664 diff -c -r1.663 -r1.664 *** src/usr.bin/tmux/tmux.1 2019/06/05 20:00:53 1.663 --- src/usr.bin/tmux/tmux.1 2019/06/13 19:46:00 1.664 *************** *** 1,4 **** ! .\" $OpenBSD: tmux.1,v 1.663 2019/06/05 20:00:53 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" --- 1,4 ---- ! .\" $OpenBSD: tmux.1,v 1.664 2019/06/13 19:46:00 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" *************** *** 14,20 **** .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" ! .Dd $Mdocdate: June 5 2019 $ .Dt TMUX 1 .Os .Sh NAME --- 14,20 ---- .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" ! .Dd $Mdocdate: June 13 2019 $ .Dt TMUX 1 .Os .Sh NAME *************** *** 4012,4036 **** .Ql myhost , otherwise by .Ql 0 . - An - .Ql m - specifies an - .Xr fnmatch 3 - comparison where the first argument is the pattern and the second the string to - compare, for example - .Ql #{m:*foo*,#{host}} . .Ql || and .Ql && evaluate to true if either or both of two comma-separated alternatives are true, for example .Ql #{||:#{pane_in_mode},#{alternate_on}} . A .Ql C performs a search for an .Xr fnmatch 3 ! pattern in the pane content and evaluates to zero if not found, or a line ! number if found. .Pp A limit may be placed on the length of the resultant string by prefixing it by an --- 4012,4056 ---- .Ql myhost , otherwise by .Ql 0 . .Ql || and .Ql && evaluate to true if either or both of two comma-separated alternatives are true, for example .Ql #{||:#{pane_in_mode},#{alternate_on}} . + .Pp + An + .Ql m + specifies an + .Xr fnmatch 3 + or regular expression comparison. + The first argument is the pattern and the second the string to compare. + An optional third argument specifies flags: + .Ql r + means the pattern is a regular expression instead of the default + .Xr fnmatch 3 + pattern, and + .Ql i + means to ignore case. + For example: + .Ql #{m:*foo*,#{host}} + or + .Ql #{m/ri:^A,MYVAR} . A .Ql C performs a search for an .Xr fnmatch 3 ! pattern or regular expression in the pane content and evaluates to zero if not ! found, or a line number if found. ! Like ! .Ql m , ! a ! .Ql r ! flag means search for a regular expression and ! .Ql i ! ignores case. ! For example: ! .Ql #{C/r:^Start} .Pp A limit may be placed on the length of the resultant string by prefixing it by an *************** *** 4103,4108 **** --- 4123,4136 ---- with .Ql bar throughout. + The first argument may be an extended regular expression and a final argument may be + .Ql i + to ignore case, for example + .Ql s/a(.)/\1x/i: + would change + .Ql abABab + into + .Ql bxBxbx . .Pp In addition, the first line of a shell command's output may be inserted using .Ql #() .