=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.333 retrieving revision 1.334 diff -u -r1.333 -r1.334 --- src/usr.bin/tmux/tmux.1 2013/03/24 09:29:40 1.333 +++ src/usr.bin/tmux/tmux.1 2013/03/24 09:33:35 1.334 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.333 2013/03/24 09:29:40 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.334 2013/03/24 09:33:35 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -3464,7 +3464,11 @@ .Bl -tag -width Ds .It Ic clock-mode Op Fl t Ar target-pane Display a large clock. -.It Ic if-shell Ar shell-command command Op Ar command +.It Xo Ic if-shell +.Op Fl t Ar target-pane +.Ar shell-command command +.Op Ar command +.Xc .D1 (alias: Ic if ) Execute the first .Ar command @@ -3473,6 +3477,10 @@ returns success or the second .Ar command otherwise. +Before being executed, shell-command is expanded using the rules specified in the +.Sx FORMATS +section, including those relevant to +.Ar target-pane . .It Ic lock-server .D1 (alias: Ic lock ) Lock each client individually by running the command specified by the @@ -3486,6 +3494,10 @@ Execute .Ar shell-command in the background without creating a window. +Before being executed, shell-command is expanded using the rules specified in +the +.Sx FORMATS +section. After it finishes, any output to stdout is displayed in copy mode (in the pane specified by .Fl t