7,290 reputation
22836
bio website
location McKinney, TX
age
visits member for 4 years, 7 months
seen 1 hour ago

Mar
12
comment How big is the pipe buffer?
@WakanTanka: The Perl program writes to its stdout (a shell-created pipe—the one that is being tested) in blocks of a given size and reports to its stderr a running total of how much it has written (until it gets an error—usually because the pipe’s buffer is full or possibly because the reading end of the pipe has been closed after a short time (exec 0<&-)). The final report is collected (tail -1) and printed along with the write size.
Mar
12
comment How big is the pipe buffer?
@WakanTanka: It is a bit much to describe in a comment, but that particular construct is a parameter assignment (var=…) of the output of a command substitution ($(…)) that includes grouped commands ({…}, and (…)). It also uses several (less common) redirections (i.e. 0<&- and 3>&1).
Feb
27
awarded  Guru
Feb
24
comment Tmux - Get number of panes in the current window in bash variable?
In one command: tmux display-message -p '#{window_panes}' (see the FORMATS section of the man page for other variables).
Feb
17
awarded  Enlightened
Feb
17
awarded  Nice Answer
Feb
3
awarded  Nice Answer
Jan
29
awarded  Guru
Jan
16
awarded  Good Answer
Nov
17
answered Can I see what's going on in a tmux session without attaching to it?
Nov
5
awarded  vim
Nov
4
awarded  Enlightened
Nov
4
awarded  Nice Answer
Oct
29
awarded  Enlightened
Sep
30
awarded  Explainer
Aug
25
revised How can I paste (overwriting) with vim?
fix typo, per comment
Aug
23
awarded  Yearling
Jul
31
awarded  Guru
Jul
16
reviewed Approve Special File that causes I/O error
Jun
17
answered Make tmux block until program completes