-
-
Save lucc/14dc03f14fdf7be73c90eeb3767387b6 to your computer and use it in GitHub Desktop.
debugging log of vimpager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + mkdir_options='-m 700' | |
| + '[' -n '' ']' | |
| + tmp=/tmp | |
| + tmp=/tmp/vimpager_29999 | |
| + mkdir -m 700 /tmp/vimpager_29999 | |
| + trap 'quit 1' PIPE HUP INT QUIT ILL TRAP KILL BUS TERM | |
| + command -v tput | |
| + tput cols | |
| + tput lines | |
| ++ cat /tmp/vimpager_29999/cols | |
| + cols=80 | |
| ++ cat /tmp/vimpager_29999/lines | |
| + lines=24 | |
| + rm -f -- /tmp/vimpager_29999/cols /tmp/vimpager_29999/lines | |
| + '[' -z 80 ']' | |
| + '[' -z 80 ']' | |
| + expand_config_vars | |
| + eval 'runtime="$project_dir"' | |
| ++ runtime=/home/luc/vcs/vimpager | |
| + eval 'vimcat="$project_dir/vimcat"' | |
| ++ vimcat=/home/luc/vcs/vimpager/vimcat | |
| + i=1 | |
| + OLDIFS=' | |
| ' | |
| + IFS=' | |
| ' | |
| ++ vim -NEnR -i NONE '+call writefile(["", "VAL:" . $VIM, "VAL:" . $MYVIMRC], "/dev/stderr")' +q | |
| + for var in '$(vim -NEnR -i NONE +'\''call writefile(["", "VAL:" . $VIM, "VAL:" . $MYVIMRC], "/dev/stderr")'\'' +q </dev/tty 2>&1 >/dev/null)' | |
| + case "$var" in | |
| + case $i in | |
| + vim_dir=/usr/share/nvim | |
| + i=2 | |
| + for var in '$(vim -NEnR -i NONE +'\''call writefile(["", "VAL:" . $VIM, "VAL:" . $MYVIMRC], "/dev/stderr")'\'' +q </dev/tty 2>&1 >/dev/null)' | |
| + case "$var" in | |
| + case $i in | |
| + user_vimrc= | |
| + break | |
| + IFS=' | |
| ' | |
| ++ vim --version | |
| ++ sed -n '/system vimrc file: "/{ | |
| s|\$VIM|/usr/share/nvim| | |
| s/.*: "\([^"]*\).*/\1/p | |
| q | |
| }' | |
| ++ command sed -n '/system vimrc file: "/{ | |
| s|\$VIM|/usr/share/nvim| | |
| s/.*: "\([^"]*\).*/\1/p | |
| q | |
| }' | |
| ++ sed -n '/system vimrc file: "/{ | |
| s|\$VIM|/usr/share/nvim| | |
| s/.*: "\([^"]*\).*/\1/p | |
| q | |
| }' | |
| + system_vimrc=/usr/share/nvim/sysinit.vim | |
| + user_vimrc_dir= | |
| + '[' -n '' ']' | |
| + '[' -r /.vimpagerrc ']' | |
| + '[' -r /_vimpagerrc ']' | |
| + '[' -r /vimpagerrc ']' | |
| + '[' -r /home/luc/.vimpagerrc ']' | |
| + '[' -r /home/luc/.vim/vimpagerrc ']' | |
| + '[' -r /home/luc/_vimpagerrc ']' | |
| + '[' -r /home/luc/vimfiles/vimpagerrc ']' | |
| + '[' -r /usr/share/nvim/_vimpagerrc ']' | |
| + '[' -z '' ']' | |
| + vimrc= | |
| + '[' -z '' ']' | |
| + '[' -f /usr/local/etc/vimpagerrc ']' | |
| + '[' -f /etc/vimpagerrc ']' | |
| + vimrc=NORC | |
| + i=1 | |
| + OLDIFS=' | |
| ' | |
| + IFS=' | |
| ' | |
| ++ vim -NEnR -u NORC -i NONE --cmd 'let g:vimpager = { "enabled": 1 }' '+ | |
| if !exists("g:vimpager.gvim") | |
| if !exists("g:vimpager_use_gvim") | |
| let g:vimpager.gvim = 0 | |
| else | |
| let g:vimpager.gvim = g:vimpager_use_gvim | |
| endif | |
| endif | |
| if !exists("g:vimpager.X11") | |
| if !exists("g:vimpager_disable_x11") | |
| let g:vimpager.X11 = 1 | |
| else | |
| let g:vimpager.X11 = !g:vimpager_disable_x11 | |
| endif | |
| endif | |
| if !exists("g:vimpager.passthrough") | |
| if !exists("g:vimpager_passthrough") | |
| let g:vimpager.passthrough = 1 | |
| else | |
| let g:vimpager.passthrough = g:vimpager_passthrough | |
| endif | |
| endif | |
| let g:use_ansiesc = 0 | |
| if has("conceal") && (!exists("g:vimpager.ansiesc") || g:vimpager.ansiesc == 1) && (!exists("g:vimpager_disable_ansiesc") || g:vimpager_disable_ansiesc == 0) | |
| let g:use_ansiesc = 1 | |
| endif | |
| call writefile([""] + map([g:vimpager.gvim, g:vimpager.X11, g:vimpager.passthrough, g:use_ansiesc], "\"VAL:\".v:val"), "/dev/stderr") | |
| quit | |
| ' | |
| + for var in '$(vim -NEnR -u "$vimrc" -i NONE --cmd '\''let g:vimpager = { "enabled": 1 }'\'' +'\'' | |
| if !exists("g:vimpager.gvim") | |
| if !exists("g:vimpager_use_gvim") | |
| let g:vimpager.gvim = 0 | |
| else | |
| let g:vimpager.gvim = g:vimpager_use_gvim | |
| endif | |
| endif | |
| if !exists("g:vimpager.X11") | |
| if !exists("g:vimpager_disable_x11") | |
| let g:vimpager.X11 = 1 | |
| else | |
| let g:vimpager.X11 = !g:vimpager_disable_x11 | |
| endif | |
| endif | |
| if !exists("g:vimpager.passthrough") | |
| if !exists("g:vimpager_passthrough") | |
| let g:vimpager.passthrough = 1 | |
| else | |
| let g:vimpager.passthrough = g:vimpager_passthrough | |
| endif | |
| endif | |
| let g:use_ansiesc = 0 | |
| if has("conceal") && (!exists("g:vimpager.ansiesc") || g:vimpager.ansiesc == 1) && (!exists("g:vimpager_disable_ansiesc") || g:vimpager_disable_ansiesc == 0) | |
| let g:use_ansiesc = 1 | |
| endif | |
| call writefile([""] + map([g:vimpager.gvim, g:vimpager.X11, g:vimpager.passthrough, g:use_ansiesc], "\"VAL:\".v:val"), "/dev/stderr") | |
| quit | |
| '\'' </dev/tty 2>&1 >/dev/null)' | |
| + case "$var" in | |
| + case $i in | |
| + '[' 0 -eq 1 ']' | |
| + i=2 | |
| + for var in '$(vim -NEnR -u "$vimrc" -i NONE --cmd '\''let g:vimpager = { "enabled": 1 }'\'' +'\'' | |
| if !exists("g:vimpager.gvim") | |
| if !exists("g:vimpager_use_gvim") | |
| let g:vimpager.gvim = 0 | |
| else | |
| let g:vimpager.gvim = g:vimpager_use_gvim | |
| endif | |
| endif | |
| if !exists("g:vimpager.X11") | |
| if !exists("g:vimpager_disable_x11") | |
| let g:vimpager.X11 = 1 | |
| else | |
| let g:vimpager.X11 = !g:vimpager_disable_x11 | |
| endif | |
| endif | |
| if !exists("g:vimpager.passthrough") | |
| if !exists("g:vimpager_passthrough") | |
| let g:vimpager.passthrough = 1 | |
| else | |
| let g:vimpager.passthrough = g:vimpager_passthrough | |
| endif | |
| endif | |
| let g:use_ansiesc = 0 | |
| if has("conceal") && (!exists("g:vimpager.ansiesc") || g:vimpager.ansiesc == 1) && (!exists("g:vimpager_disable_ansiesc") || g:vimpager_disable_ansiesc == 0) | |
| let g:use_ansiesc = 1 | |
| endif | |
| call writefile([""] + map([g:vimpager.gvim, g:vimpager.X11, g:vimpager.passthrough, g:use_ansiesc], "\"VAL:\".v:val"), "/dev/stderr") | |
| quit | |
| '\'' </dev/tty 2>&1 >/dev/null)' | |
| + case "$var" in | |
| + case $i in | |
| + '[' 1 -eq 0 ']' | |
| + i=3 | |
| + for var in '$(vim -NEnR -u "$vimrc" -i NONE --cmd '\''let g:vimpager = { "enabled": 1 }'\'' +'\'' | |
| if !exists("g:vimpager.gvim") | |
| if !exists("g:vimpager_use_gvim") | |
| let g:vimpager.gvim = 0 | |
| else | |
| let g:vimpager.gvim = g:vimpager_use_gvim | |
| endif | |
| endif | |
| if !exists("g:vimpager.X11") | |
| if !exists("g:vimpager_disable_x11") | |
| let g:vimpager.X11 = 1 | |
| else | |
| let g:vimpager.X11 = !g:vimpager_disable_x11 | |
| endif | |
| endif | |
| if !exists("g:vimpager.passthrough") | |
| if !exists("g:vimpager_passthrough") | |
| let g:vimpager.passthrough = 1 | |
| else | |
| let g:vimpager.passthrough = g:vimpager_passthrough | |
| endif | |
| endif | |
| let g:use_ansiesc = 0 | |
| if has("conceal") && (!exists("g:vimpager.ansiesc") || g:vimpager.ansiesc == 1) && (!exists("g:vimpager_disable_ansiesc") || g:vimpager_disable_ansiesc == 0) | |
| let g:use_ansiesc = 1 | |
| endif | |
| call writefile([""] + map([g:vimpager.gvim, g:vimpager.X11, g:vimpager.passthrough, g:use_ansiesc], "\"VAL:\".v:val"), "/dev/stderr") | |
| quit | |
| '\'' </dev/tty 2>&1 >/dev/null)' | |
| + case "$var" in | |
| + case $i in | |
| + '[' 1 -eq 0 ']' | |
| + i=4 | |
| + for var in '$(vim -NEnR -u "$vimrc" -i NONE --cmd '\''let g:vimpager = { "enabled": 1 }'\'' +'\'' | |
| if !exists("g:vimpager.gvim") | |
| if !exists("g:vimpager_use_gvim") | |
| let g:vimpager.gvim = 0 | |
| else | |
| let g:vimpager.gvim = g:vimpager_use_gvim | |
| endif | |
| endif | |
| if !exists("g:vimpager.X11") | |
| if !exists("g:vimpager_disable_x11") | |
| let g:vimpager.X11 = 1 | |
| else | |
| let g:vimpager.X11 = !g:vimpager_disable_x11 | |
| endif | |
| endif | |
| if !exists("g:vimpager.passthrough") | |
| if !exists("g:vimpager_passthrough") | |
| let g:vimpager.passthrough = 1 | |
| else | |
| let g:vimpager.passthrough = g:vimpager_passthrough | |
| endif | |
| endif | |
| let g:use_ansiesc = 0 | |
| if has("conceal") && (!exists("g:vimpager.ansiesc") || g:vimpager.ansiesc == 1) && (!exists("g:vimpager_disable_ansiesc") || g:vimpager_disable_ansiesc == 0) | |
| let g:use_ansiesc = 1 | |
| endif | |
| call writefile([""] + map([g:vimpager.gvim, g:vimpager.X11, g:vimpager.passthrough, g:use_ansiesc], "\"VAL:\".v:val"), "/dev/stderr") | |
| quit | |
| '\'' </dev/tty 2>&1 >/dev/null)' | |
| + case "$var" in | |
| + case $i in | |
| + '[' 1 -ne 0 ']' | |
| + ansiesc_available=1 | |
| + break | |
| + IFS=' | |
| ' | |
| + '[' -n '' -o -n '' ']' | |
| + '[' -n '' ']' | |
| + vim_cmd=vim | |
| + rm -f gvim.exe.stackdump | |
| + '[' '!' -n '' -a -n '' ']' | |
| ++ do_ptree | |
| + ptree='17591 zsh | |
| 29987 man urxvt-bell-command | |
| 29999 /bin/sh /home/luc/vcs/vimpager/vimpager -x' | |
| + echo '17591 zsh | |
| 29987 man urxvt-bell-command | |
| 29999 /bin/sh /home/luc/vcs/vimpager/vimpager -x' | |
| + grep -Eq '([ \t]+|/)(man|[Pp]y(thon|doc)[0-9.]*|[Rr](uby|i)[0-9.]*)([ \t]|$)' | |
| + case "$1" in | |
| + case "$2" in | |
| + '[' 1 -eq 1 ']' | |
| + command grep -Eq '([ \t]+|/)(man|[Pp]y(thon|doc)[0-9.]*|[Rr](uby|i)[0-9.]*)([ \t]|$)' | |
| + grep -Eq '([ \t]+|/)(man|[Pp]y(thon|doc)[0-9.]*|[Rr](uby|i)[0-9.]*)([ \t]|$)' | |
| + is_man=1 | |
| + is_doc=1 | |
| + force_strip_ansi=1 | |
| ++ echo '17591 zsh | |
| 29987 man urxvt-bell-command | |
| 29999 /bin/sh /home/luc/vcs/vimpager/vimpager -x' | |
| ++ tr '\n' , | |
| ++ awk '{ print "\"" $2 "\"" }' | |
| ++ command gawk '{ print "\"" $2 "\"" }' | |
| ++ gawk '{ print "\"" $2 "\"" }' | |
| + extra_cmd='let g:vimpager.ptree=["zsh","man","/bin/sh",] | call remove(g:vimpager.ptree, -1) | let g:vimpager_ptree = g:vimpager.ptree' | |
| + '[' 1 -gt 0 ']' | |
| + case "$1" in | |
| + shift | |
| + '[' 0 -gt 0 ']' | |
| + '[' 0 -eq 0 ']' | |
| + set -- - | |
| + file_idx=1 | |
| + for file in '"$@"' | |
| + '[' - = - ']' | |
| + filename=stdin | |
| + set_key orig_file_names 1 stdin | |
| + eval 'orig_file_names_1="stdin"' | |
| ++ orig_file_names_1=stdin | |
| ++ encode_filename stdin | |
| ++ echo stdin | |
| ++ sed -e 's|%|%25|g' -e 's|/|%2F|g' | |
| ++ command sed -e 's|%|%25|g' -e 's|/|%2F|g' | |
| ++ sed -e 's|%|%25|g' -e 's|/|%2F|g' | |
| + filename=stdin | |
| + tempfile= | |
| + case "$(echo "$file" | tr 'A-Z' 'a-z')" in | |
| ++ echo - | |
| ++ tr A-Z a-z | |
| + '[' - = - ']' | |
| + tempfile=/tmp/vimpager_29999/stdin | |
| + cat -- - | |
| + head -100 /tmp/vimpager_29999/stdin | |
| + _lines= | |
| + case "$1" in | |
| + _lines=100 | |
| + grep -Eq '\[[;?]*[0-9.;]*[A-Za-z]' | |
| + shift | |
| + '[' -z 100 ']' | |
| + case "$1" in | |
| + '[' new = new ']' | |
| + case "$2" in | |
| + '[' 1 -eq 1 ']' | |
| + command head -n 100 -- /tmp/vimpager_29999/stdin | |
| + head -n 100 -- /tmp/vimpager_29999/stdin | |
| + command grep -Eq '\[[;?]*[0-9.;]*[A-Za-z]' | |
| + grep -Eq '\[[;?]*[0-9.;]*[A-Za-z]' | |
| + '[' 0 -eq 1 ']' | |
| + '[' -z 1 ']' | |
| + '[' -n 1 ']' | |
| + ansi_filter /tmp/vimpager_29999/stdin | |
| + sed -e 's/\[[;?]*[0-9.;]*[A-Za-z]//g' /tmp/vimpager_29999/stdin | |
| + command sed -e 's/\[[;?]*[0-9.;]*[A-Za-z]//g' /tmp/vimpager_29999/stdin | |
| + sed -e 's/\[[;?]*[0-9.;]*[A-Za-z]//g' /tmp/vimpager_29999/stdin | |
| + overstrike_filter | |
| + sed $'s/.\b//g' | |
| + command sed $'s/.\b//g' | |
| + sed $'s/.\b//g' | |
| + awk ' | |
| BEGIN { skipblank=1 } | |
| /^[ ]*$/ { if (!skipblank) print } | |
| /[^ ]/ { skipblank=0; print } | |
| ' | |
| + command gawk ' | |
| BEGIN { skipblank=1 } | |
| /^[ ]*$/ { if (!skipblank) print } | |
| /[^ ]/ { skipblank=0; print } | |
| ' | |
| + gawk ' | |
| BEGIN { skipblank=1 } | |
| /^[ ]*$/ { if (!skipblank) print } | |
| /[^ ]/ { skipblank=0; print } | |
| ' | |
| + tempfile=/tmp/vimpager_29999/stdin | |
| + mv -f -- /tmp/vimpager_29999/stdin.work /tmp/vimpager_29999/stdin | |
| + '[' -n 1 ']' | |
| + echo 'set ft=man' | |
| ++ cat /tmp/vimpager_29999/stdin | |
| ++ wc -l | |
| + '[' '!' -s /tmp/vimpager_29999/stdin -a 1 -eq 1 -o 'urxvt-bell-command(1) RXVT-UNICODE urxvt-bell-command(1) | |
| NAME | |
| bell-command - execute a command when the bell rings | |
| DESCRIPTION | |
| Runs the command specified by the "URxvt.bell-command" resource when a bell event occurs. For example, the following pops up a notification bubble | |
| with the text "Beep, Beep" using notify-send: | |
| URxvt.bell-command: notify-send "Beep, Beep" | |
| 9.22 2016-01-26 urxvt-bell-command(1)' = '' -a 12 -eq 1 ']' | |
| ++ resolve_path /tmp/vimpager_29999/stdin | |
| ++ '[' -n '' ']' | |
| ++ echo /tmp/vimpager_29999/stdin | |
| + set_key files 1 /tmp/vimpager_29999/stdin | |
| + eval 'files_1="/tmp/vimpager_29999/stdin"' | |
| ++ files_1=/tmp/vimpager_29999/stdin | |
| + file_idx=2 | |
| + file_count=1 | |
| + set -- | |
| + i=1 | |
| + '[' 1 -le 1 ']' | |
| ++ get_key files 1 | |
| ++ eval 'echo "${files_1}"' | |
| +++ echo /tmp/vimpager_29999/stdin | |
| + set -- /tmp/vimpager_29999/stdin | |
| + i=2 | |
| + '[' 2 -le 1 ']' | |
| + '[' 0 -ne 1 ']' | |
| + fits_on_screen /tmp/vimpager_29999/stdin | |
| + '[' 1 -eq 0 ']' | |
| + ansi_filter /tmp/vimpager_29999/stdin | |
| + sed -e 's/\[[;?]*[0-9.;]*[A-Za-z]//g' /tmp/vimpager_29999/stdin | |
| + command sed -e 's/\[[;?]*[0-9.;]*[A-Za-z]//g' /tmp/vimpager_29999/stdin | |
| + sed -e 's/\[[;?]*[0-9.;]*[A-Za-z]//g' /tmp/vimpager_29999/stdin | |
| + awk ' | |
| { | |
| if (NR == 1) { | |
| lines = total_lines - 2 - (num_files - 1) * file_sep_lines | |
| if (num_files - 1) | |
| lines -= first_file_sep_lines | |
| total_cols += 0 # coerce to number | |
| } | |
| col = 0 | |
| for (pos = 1; pos <= length($0); pos++) { | |
| c = substr($0, pos, 1) | |
| # handle tabs | |
| if (c == "\t") | |
| col += 8 - (col % 8) | |
| else | |
| col++ | |
| if (col > total_cols) { | |
| if (!--lines) exit(1) | |
| col = 1 | |
| } | |
| } | |
| if (!--lines) exit(1) | |
| } | |
| ' num_files=1 total_lines=24 total_cols=80 file_sep_lines=3 first_file_sep_lines=2 - | |
| + command gawk ' | |
| { | |
| if (NR == 1) { | |
| lines = total_lines - 2 - (num_files - 1) * file_sep_lines | |
| if (num_files - 1) | |
| lines -= first_file_sep_lines | |
| total_cols += 0 # coerce to number | |
| } | |
| col = 0 | |
| for (pos = 1; pos <= length($0); pos++) { | |
| c = substr($0, pos, 1) | |
| # handle tabs | |
| if (c == "\t") | |
| col += 8 - (col % 8) | |
| else | |
| col++ | |
| if (col > total_cols) { | |
| if (!--lines) exit(1) | |
| col = 1 | |
| } | |
| } | |
| if (!--lines) exit(1) | |
| } | |
| ' num_files=1 total_lines=24 total_cols=80 file_sep_lines=3 first_file_sep_lines=2 - | |
| + gawk ' | |
| { | |
| if (NR == 1) { | |
| lines = total_lines - 2 - (num_files - 1) * file_sep_lines | |
| if (num_files - 1) | |
| lines -= first_file_sep_lines | |
| total_cols += 0 # coerce to number | |
| } | |
| col = 0 | |
| for (pos = 1; pos <= length($0); pos++) { | |
| c = substr($0, pos, 1) | |
| # handle tabs | |
| if (c == "\t") | |
| col += 8 - (col % 8) | |
| else | |
| col++ | |
| if (col > total_cols) { | |
| if (!--lines) exit(1) | |
| col = 1 | |
| } | |
| } | |
| if (!--lines) exit(1) | |
| } | |
| ' num_files=1 total_lines=24 total_cols=80 file_sep_lines=3 first_file_sep_lines=2 - | |
| + overstrike_filter | |
| + sed $'s/.\b//g' | |
| + command sed $'s/.\b//g' | |
| + sed $'s/.\b//g' | |
| + cat_files=1 | |
| + page_files /tmp/vimpager_29999/stdin | |
| + '[' -n 1 ']' | |
| + i=1 | |
| + for cur_file in '"$@"' | |
| ++ get_key orig_file_names 1 | |
| ++ eval 'echo "${orig_file_names_1}"' | |
| +++ echo stdin | |
| + orig_file=stdin | |
| + '[' 1 -gt 1 ']' | |
| ++ get_key ansi_files 1 | |
| ++ eval 'echo "${ansi_files_1}"' | |
| +++ echo '' | |
| + '[' -n '' ']' | |
| + /bin/sh -x /home/luc/vcs/vimpager/vimcat -u NORC --cmd 'set rtp^=/home/luc/vcs/vimpager | let vimpager={ '\''enabled'\'': 1 }' --cmd 'let g:vimpager.ptree=["zsh","man","/bin/sh",] | call remove(g:vimpager.ptree, -1) | let g:vimpager_ptree = g:vimpager.ptree' -c 'silent! source /tmp/vimpager_29999/1.vim' -c echo /tmp/vimpager_29999/stdin | |
| + : if 0 | |
| + link=/home/luc/vcs/vimpager/vimcat | |
| + true | |
| ++ ls -l /home/luc/vcs/vimpager/vimcat | |
| + ls0='-rwxr-xr-x 1 luc luc 16858 May 17 00:21 /home/luc/vcs/vimpager/vimcat' | |
| ++ expr '-rwxr-xr-x 1 luc luc 16858 May 17 00:21 /home/luc/vcs/vimpager/vimcat' : '.* -> \(.*\)$' | |
| + new_link= | |
| + '[' -z '' ']' | |
| + break | |
| ++ dirname /home/luc/vcs/vimpager/vimcat | |
| + project_dir=/home/luc/vcs/vimpager | |
| + . /home/luc/vcs/vimpager/inc/prologue.sh | |
| ++ PATH=/home/luc/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin:/opt/csw/bin:/opt/local/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/dt/bin:/usr/bin:/bin:/usr/local/bin:/opt/csw/bin:/opt/local/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/dt/bin:/usr/bin:/bin | |
| ++ export PATH | |
| ++ '[' -z /bin/sh ']' | |
| ++ cd /home/luc/vcs/vimpager | |
| ++ git describe | |
| + version='2.06-242-ge949a69 (git)' | |
| + command -v vim | |
| + vim=vim | |
| + '[' 11 -eq 0 -a -t 0 ']' | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + for arg in '"$@"' | |
| + case "$arg" in | |
| + tmp_dir=/tmp | |
| + mkdir_options='-m 700' | |
| + case "$(uname -s)" in | |
| ++ uname -s | |
| + tmp_dir=/tmp/vimcat_30080 | |
| + mkdir -m 700 /tmp/vimcat_30080 | |
| + trap 'quit 1' PIPE HUP INT QUIT ILL TRAP KILL BUS TERM | |
| + tmp_file_in=/tmp/vimcat_30080/vimcat_in.txt | |
| + out_fifo=/tmp/vimcat_30080/vimcat_out.fifo | |
| + case "$(uname -s)" in | |
| ++ uname -s | |
| + mkfifo /tmp/vimcat_30080/vimcat_out.fifo | |
| ++ command -v /home/luc/vcs/vimpager/vimcat | |
| + script=/home/luc/vcs/vimpager/vimcat | |
| + '[' 11 -gt 0 ']' | |
| + case "$1" in | |
| + shift | |
| + vimcatrc=NORC | |
| + shift | |
| + '[' 9 -gt 0 ']' | |
| + case "$1" in | |
| + shift | |
| + '[' -z '' ']' | |
| + extra_cmd='set rtp^=/home/luc/vcs/vimpager | let vimpager={ '\''enabled'\'': 1 }' | |
| + shift | |
| + '[' 7 -gt 0 ']' | |
| + case "$1" in | |
| + shift | |
| + '[' -z 'set rtp^=/home/luc/vcs/vimpager | let vimpager={ '\''enabled'\'': 1 }' ']' | |
| + extra_cmd='set rtp^=/home/luc/vcs/vimpager | let vimpager={ '\''enabled'\'': 1 } | let g:vimpager.ptree=["zsh","man","/bin/sh",] | call remove(g:vimpager.ptree, -1) | let g:vimpager_ptree = g:vimpager.ptree' | |
| + shift | |
| + '[' 5 -gt 0 ']' | |
| + case "$1" in | |
| + shift | |
| + '[' -z '' ']' | |
| + extra_c='silent! source /tmp/vimpager_29999/1.vim' | |
| + shift | |
| + '[' 3 -gt 0 ']' | |
| + case "$1" in | |
| + shift | |
| + '[' -z 'silent! source /tmp/vimpager_29999/1.vim' ']' | |
| + extra_c='silent! source /tmp/vimpager_29999/1.vim | echo' | |
| + shift | |
| + '[' 1 -gt 0 ']' | |
| + case "$1" in | |
| + break | |
| + '[' -z '' ']' | |
| + '[' '!' -t 1 ']' | |
| + '[' -z NORC ']' | |
| + '[' 1 -eq 0 ']' | |
| + '[' -n '' -a 1 -gt 1 ']' | |
| + chunks_dir=/tmp/vimcat_30080/chunks | |
| + mkdir /tmp/vimcat_30080/chunks | |
| + i=1 | |
| + for file in '"$@"' | |
| + '[' 1 -ge 2 ']' | |
| + pipeline= | |
| + pipeline_start=/tmp/vimpager_29999/stdin | |
| + '[' 0 -eq 1 ']' | |
| + exit_code=0 | |
| + '[' /tmp/vimpager_29999/stdin '!=' - ']' | |
| + '[' '!' -r /tmp/vimpager_29999/stdin ']' | |
| + '[' '!' -s /tmp/vimpager_29999/stdin ']' | |
| + '[' -z '' -o '' = - ']' | |
| + dest_file=/tmp/vimcat_30080/vimcat_out.fifo | |
| + tail_pid=30092 | |
| + start_highlight_job | |
| + _quit='qa!' | |
| + _silent='silent!' | |
| + tail -f /tmp/vimcat_30080/vimcat_out.fifo | |
| + '[' 0 -ne 0 ']' | |
| + set -- -NE -i NONE -n --cmd 'visual | set rtp^=/home/luc/vcs/vimpager | let vimpager={ '\''enabled'\'': 1 } | let g:vimpager.ptree=["zsh","man","/bin/sh",] | call remove(g:vimpager.ptree, -1) | let g:vimpager_ptree = g:vimpager.ptree' -c 'silent! execute '\''file '\'' . fnameescape('\''/tmp/vimpager_29999/stdin'\'') | set bg=dark fdl=9999 | syn enable | hi Normal ctermbg=NONE | silent! source /home/luc/vcs/vimpager/vimcat' -c 'set buftype=nowrite | silent! source /tmp/vimpager_29999/1.vim | echo | call AnsiHighlight("/tmp/vimcat_30080/vimcat_out.fifo", 0, "/tmp/vimcat_30080/chunks") | qa!' | |
| + '[' -n NORC ']' | |
| + set -- -NE -i NONE -n --cmd 'visual | set rtp^=/home/luc/vcs/vimpager | let vimpager={ '\''enabled'\'': 1 } | let g:vimpager.ptree=["zsh","man","/bin/sh",] | call remove(g:vimpager.ptree, -1) | let g:vimpager_ptree = g:vimpager.ptree' -c 'silent! execute '\''file '\'' . fnameescape('\''/tmp/vimpager_29999/stdin'\'') | set bg=dark fdl=9999 | syn enable | hi Normal ctermbg=NONE | silent! source /home/luc/vcs/vimpager/vimcat' -c 'set buftype=nowrite | silent! source /tmp/vimpager_29999/1.vim | echo | call AnsiHighlight("/tmp/vimcat_30080/vimcat_out.fifo", 0, "/tmp/vimcat_30080/chunks") | qa!' -u NORC | |
| + '[' 0 -eq 0 ']' | |
| + vim_pid=30093 | |
| + vim -NE -i NONE -n --cmd 'visual | set rtp^=/home/luc/vcs/vimpager | let vimpager={ '\''enabled'\'': 1 } | let g:vimpager.ptree=["zsh","man","/bin/sh",] | call remove(g:vimpager.ptree, -1) | let g:vimpager_ptree = g:vimpager.ptree' -c 'silent! execute '\''file '\'' . fnameescape('\''/tmp/vimpager_29999/stdin'\'') | set bg=dark fdl=9999 | syn enable | hi Normal ctermbg=NONE | silent! source /home/luc/vcs/vimpager/vimcat' -c 'set buftype=nowrite | silent! source /tmp/vimpager_29999/1.vim | echo | call AnsiHighlight("/tmp/vimcat_30080/vimcat_out.fifo", 0, "/tmp/vimcat_30080/chunks") | qa!' -u NORC | |
| + start_pipeline | |
| + '[' -n '' ']' | |
| + pipeline=write_chunks | |
| + cat -- /tmp/vimpager_29999/stdin | |
| + echo 30096 | |
| + eval write_chunks | |
| ++ cat /tmp/vimcat_30080/pipeline_pid | |
| + pipeline_pid=30096 | |
| + wait 30093 | |
| ++ write_chunks | |
| ++ cd /tmp/vimcat_30080/chunks | |
| ++ rm -f -- '*' | |
| ++ split -b 4096 - | |
| ++ touch PIPELINE_DONE | |
| + '[' -n 30092 ']' | |
| + '[' '!' -p /tmp/vimcat_30080/vimcat_out.fifo ']' | |
| + kill 30092 | |
| + i=2 | |
| + quit 0 | |
| + exit 0 | |
| + kill 30093 | |
| + _exit_status=0 | |
| + i=2 | |
| + return 0 | |
| + do_sleep 100 | |
| + _ms=100 | |
| + quit 0 | |
| + vim -NEsnR -i NONE -u NONE '+sleep 100 m' +q | |
| + rm -f gvim.exe.stackdump | |
| + cd /tmp/vimpager_29999/.. | |
| + rm -rf /tmp/vimpager_29999 | |
| + exit 0 | |
| + kill -9 30093 | |
| + kill 30096 | |
| + do_sleep 100 | |
| + _ms=100 | |
| + vim -NEsnR -i NONE -u NONE '+sleep 100 m' +q | |
| + kill -9 30096 | |
| + kill 30092 | |
| + do_sleep 100 | |
| + _ms=100 | |
| + vim -NEsnR -i NONE -u NONE '+sleep 100 m' +q | |
| + kill -9 30092 | |
| + rm -rf /tmp/vimcat_30080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment