Last active
January 13, 2016 14:11
-
-
Save lucc/5882631e1fd1ffcd65b4 to your computer and use it in GitHub Desktop.
debugging output of vimpager
This file contains 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
+ : if 0 | |
+ 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/dt/bin:/usr/xpg4/bin:/usr/bin:/bin | |
+ _MY_SHELL=/bin/sh | |
+ export _MY_SHELL | |
+ '[' -z 1 ']' | |
+ '[' -z 1 ']' | |
+ tmp_dir=/tmp | |
+ mkdir_options='-m 700' | |
+ case "$(uname -s)" in | |
++ uname -s | |
+ tmp_dir=/tmp/vimcat_22804 | |
+ mkdir -m 700 /tmp/vimcat_22804 | |
+ trap 'rm -rf /tmp/vimcat_22804' HUP INT QUIT ILL TRAP KILL BUS TERM | |
+ tmp_file_in=/tmp/vimcat_22804/vimcat_in.txt | |
+ tmp_file_out=/tmp/vimcat_22804/vimcat_out.txt | |
++ command -v /usr/local/bin/vimcat | |
+ script=/usr/local/bin/vimcat | |
+ '[' 0 -gt 0 ']' | |
+ '[' -z '' ']' | |
+ '[' '!' -t 1 ']' | |
+ '[' -z '' ']' | |
+ '[' -f /home/luc/.vimcatrc ']' | |
+ vimcatrc= | |
+ '[' -z '' ']' | |
+ extra_cmd='silent! echo' | |
+ '[' -z '' ']' | |
+ extra_c='silent! echo' | |
+ '[' 0 -eq 0 ']' | |
+ set -- - | |
+ for file in '"$@"' | |
+ '[' 1 -ge 2 ']' | |
+ '[' - = - ']' | |
+ cat - | |
+ file=/tmp/vimcat_22804/vimcat_in.txt | |
+ '[' '' = 1 ']' | |
+ test -r /tmp/vimcat_22804/vimcat_in.txt -a -f /tmp/vimcat_22804/vimcat_in.txt | |
+ test -s /tmp/vimcat_22804/vimcat_in.txt | |
+ '[' -z '' -o '' = - ']' | |
+ dest_file=/tmp/vimcat_22804/vimcat_out.txt | |
+ '[' -n '' ']' | |
+ vim -N -E -X -R -i NONE --cmd 'visual | silent! echo' -c 'set bg=dark | syn on | hi Normal ctermbg=NONE | silent! source /usr/local/bin/vimcat | silent! echo | call AnsiHighlight("/tmp/vimcat_22804/vimcat_out.txt") | q' -- /tmp/vimcat_22804/vimcat_in.txt | |
+ '[' -z '' -o '' = - ']' | |
+ cat /tmp/vimcat_22804/vimcat_out.txt | |
cat: /tmp/vimcat_22804/vimcat_out.txt: No such file or directory | |
+ '[' -z '' ']' | |
+ tail_cmd=tail | |
+ '[' -x /usr/xpg4/bin/tail ']' | |
+ command -v gtail | |
++ tail -c 1 /tmp/vimcat_22804/vimcat_out.txt | |
tail: cannot open ‘/tmp/vimcat_22804/vimcat_out.txt’ for reading: No such file or directory | |
+ last_char= | |
+ '[' '' '!=' '' ']' | |
+ rm -rf /tmp/vimcat_22804 | |
+ exit |
This file contains 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
+ '[' '!' -t 1 ']' | |
+ 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/dt/bin:/usr/xpg4/bin:/usr/bin:/bin | |
+ _MY_SHELL=/bin/sh | |
+ export _MY_SHELL | |
+ '[' -z 1 ']' | |
+ '[' -z 1 ']' | |
+ case $(uname -s) in | |
++ uname -s | |
+ linux=1 | |
+ main | |
+ mkdir_options='-m 700' | |
+ '[' -n '' -o -n '' ']' | |
+ tmp=/tmp | |
+ tmp=/tmp/vimpager_21974 | |
+ mkdir -m 700 /tmp/vimpager_21974 | |
+ trap 'cd '\''/tmp/vimpager_21974'\''/..; rm -rf '\''/tmp/vimpager_21974'\'' gvim.exe.stackdump' HUP INT QUIT ILL TRAP KILL BUS TERM | |
+ command -v tput | |
+ tput cols | |
+ tput lines | |
++ cat /tmp/vimpager_21974/cols | |
+ cols=80 | |
++ cat /tmp/vimpager_21974/lines | |
+ lines=24 | |
+ rm -f /tmp/vimpager_21974/cols /tmp/vimpager_21974/lines | |
+ '[' -z 80 ']' | |
+ '[' -z 80 ']' | |
+ '[' -n '' ']' | |
+ '[' -f /home/luc/.vimpagerrc ']' | |
+ '[' -f /home/luc/.vim/vimpagerrc ']' | |
+ '[' -f /home/luc/_vimpagerrc ']' | |
+ '[' -z '' ']' | |
++ find_rc vim vimrc | |
++ _cmd=vim | |
++ _rc_file=vimrc | |
++ '[' -e /home/luc/.vimrc ']' | |
++ '[' -z '' ']' | |
++ '[' -e /home/luc/_vimrc ']' | |
++ '[' -n '' -o -n '' ']' | |
++ echo '' | |
++ unset _cmd _rc_file _rc | |
+ vimrc= | |
+ '[' -z '' ']' | |
+ '[' -f /usr/local/etc/vimpagerrc ']' | |
+ vimrc=/usr/local/etc/vimpagerrc | |
+ vim -N -u /usr/local/etc/vimpagerrc -E --cmd 'let vimpager = 1' -c ' | |
if !exists("vimpager_use_gvim") | |
let vimpager_use_gvim = 0 | |
endif | |
if !exists("vimpager_disable_x11") | |
let vimpager_disable_x11 = 0 | |
endif | |
if !exists("vimpager_scrolloff") | |
let vimpager_scrolloff = "unset" | |
endif | |
if !exists("vimpager_passthrough") | |
let vimpager_passthrough = 1 | |
endif | |
if !exists("vimpager_less_mode") | |
let vimpager_less_mode = 1 | |
endif | |
let use_ansiesc = 0 | |
if has("conceal") && (!exists("vimpager_disable_ansiesc") || vimpager_disable_ansiesc == 0) | |
let use_ansiesc = 1 | |
endif | |
call writefile([ vimpager_use_gvim, vimpager_disable_x11, vimpager_scrolloff, vimpager_passthrough, use_ansiesc, vimpager_less_mode ], "/tmp/vimpager_21974/vimpager_opts") | |
quit | |
' | |
++ head_n 1 | |
++ _lines=1 | |
++ shift | |
++ '[' -z '' ']' | |
+++ echo xx | |
+++ head -n 1 | |
++ _head1_test=xx | |
++ '[' xx = xx ']' | |
++ _head_syntax=new | |
++ '[' new = new ']' | |
++ head -n 1 -- | |
+ '[' 0 = 1 ']' | |
++ tail_n 1 | |
++ head_n 2 | |
++ _lines=1 | |
++ shift | |
++ _lines=2 | |
++ '[' -z '' ']' | |
++ shift | |
++ '[' -z '' ']' | |
+++ tail -n 1 | |
+++ head -n 1 | |
+++ echo xx | |
+++ echo xx | |
++ _head1_test=xx | |
++ _tail1_test=xx | |
++ '[' xx = xx ']' | |
++ '[' xx = xx ']' | |
++ _head_syntax=new | |
++ _tail_syntax=new | |
++ '[' new = new ']' | |
++ '[' new = new ']' | |
++ head -n 2 -- | |
++ tail -n 1 -- | |
+ '[' 0 = 1 ']' | |
++ head_n 3 | |
++ _lines=3 | |
++ shift | |
++ '[' -z '' ']' | |
++ tail_n 1 | |
++ _lines=1 | |
++ shift | |
++ '[' -z '' ']' | |
+++ head -n 1 | |
+++ tail -n 1 | |
+++ echo xx | |
+++ echo xx | |
++ _tail1_test=xx | |
++ _head1_test=xx | |
++ '[' xx = xx ']' | |
++ '[' xx = xx ']' | |
++ _tail_syntax=new | |
++ _head_syntax=new | |
++ '[' new = new ']' | |
++ '[' new = new ']' | |
++ tail -n 1 -- | |
++ head -n 3 -- | |
+ scrolloff=unset | |
++ head_n 4 | |
++ _lines=4 | |
++ shift | |
++ '[' -z '' ']' | |
++ tail_n 1 | |
++ _lines=1 | |
++ shift | |
++ '[' -z '' ']' | |
+++ head -n 1 | |
+++ tail -n 1 | |
+++ echo xx | |
+++ echo xx | |
++ _tail1_test=xx | |
++ '[' xx = xx ']' | |
++ _tail_syntax=new | |
++ _head1_test=xx | |
++ '[' new = new ']' | |
++ '[' xx = xx ']' | |
++ tail -n 1 -- | |
++ _head_syntax=new | |
++ '[' new = new ']' | |
++ head -n 4 -- | |
+ '[' 1 = 0 ']' | |
+ '[' '' = 0 ']' | |
++ head_n 5 | |
++ _lines=5 | |
++ shift | |
++ '[' -z '' ']' | |
++ tail_n 1 | |
++ _lines=1 | |
++ shift | |
++ '[' -z '' ']' | |
+++ head -n 1 | |
+++ tail -n 1 | |
+++ echo xx | |
+++ echo xx | |
++ _head1_test=xx | |
++ _tail1_test=xx | |
++ '[' xx = xx ']' | |
++ '[' xx = xx ']' | |
++ _head_syntax=new | |
++ _tail_syntax=new | |
++ '[' new = new ']' | |
++ '[' new = new ']' | |
++ head -n 5 -- | |
++ tail -n 1 -- | |
+ '[' 1 '!=' 0 ']' | |
+ ansiesc_available=1 | |
++ head_n 6 | |
++ _lines=6 | |
++ shift | |
++ '[' -z '' ']' | |
++ tail_n 1 | |
++ _lines=1 | |
++ shift | |
++ '[' -z '' ']' | |
+++ head -n 1 | |
+++ tail -n 1 | |
+++ echo xx | |
+++ echo xx | |
++ _head1_test=xx | |
++ '[' xx = xx ']' | |
++ _tail1_test=xx | |
++ _head_syntax=new | |
++ '[' xx = xx ']' | |
++ '[' new = new ']' | |
++ _tail_syntax=new | |
++ head -n 6 -- | |
++ '[' new = new ']' | |
++ tail -n 1 -- | |
+ '[' 1 '!=' 0 ']' | |
+ use_less_vim=1 | |
+ rm -f /tmp/vimpager_21974/vimpager_opts | |
+ '[' -n '' -o -n '' ']' | |
+ '[' -n '' ']' | |
+ vim_cmd=vim | |
+ rm -f gvim.exe.stackdump | |
++ do_ptree | |
++ _do_ptree | |
+ ptree='15964 zsh | |
21974 bash' | |
+ echo '15964 zsh | |
21974 bash' | |
+ grep_q '(^[0-9]+[ \t]+|\/)(man|py(thon|doc|doc[0-9]))' | |
+ _pat='(^[0-9]+[ \t]+|\/)(man|py(thon|doc|doc[0-9]))' | |
+ shift | |
+ awk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(^[0-9]+[ \t]+|\/)(man|py(thon|doc|doc[0-9]))/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
+ '[' -z '' ']' | |
+ command -v gawk | |
+ _awk=gawk | |
+ command gawk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(^[0-9]+[ \t]+|\/)(man|py(thon|doc|doc[0-9]))/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
+ gawk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(^[0-9]+[ \t]+|\/)(man|py(thon|doc|doc[0-9]))/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
+ echo '15964 zsh | |
21974 bash' | |
+ grep_q '(^[0-9]+[ \t]+|\/)perl(doc)?([0-9.]*)?' | |
+ _pat='(^[0-9]+[ \t]+|\/)perl(doc)?([0-9.]*)?' | |
+ shift | |
+ awk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(^[0-9]+[ \t]+|\/)perl(doc)?([0-9.]*)?/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
+ '[' -z '' ']' | |
+ command -v gawk | |
+ _awk=gawk | |
+ command gawk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(^[0-9]+[ \t]+|\/)perl(doc)?([0-9.]*)?/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
+ gawk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(^[0-9]+[ \t]+|\/)perl(doc)?([0-9.]*)?/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
++ echo '15964 zsh | |
21974 bash' | |
++ tr '\n' , | |
++ awk '{ print "\"" $2 "\"" }' | |
++ '[' -z '' ']' | |
++ command -v gawk | |
++ _awk=gawk | |
++ command gawk '{ print "\"" $2 "\"" }' | |
++ gawk '{ print "\"" $2 "\"" }' | |
+ extra_cmd='let vimpager_ptree=["zsh","bash",] | call remove(vimpager_ptree, -1)' | |
+ command -v perl | |
+ perl -le 'exit($] >= 5.008001 ? 0 : 1)' | |
+ have_perl=1 | |
+ '[' 0 -gt 0 ']' | |
+ filename=stdin | |
++ echo stdin | |
++ sed -e 's,[/ ],_,g' | |
+ filename=stdin | |
+ filename=/tmp/vimpager_21974/stdin | |
+ case $(echo "${@}" | tr 'A-Z' 'a-z') in | |
++ echo | |
++ tr A-Z a-z | |
+ cat -- - | |
+ filter | |
+ grep_q '(\[;*\??([0-9]+(;[0-9]+)*)?[A-Za-z])+' /tmp/vimpager_21974/stdin | |
+ _pat='(\[;*\??([0-9]+(;[0-9]+)*)?[A-Za-z])+' | |
+ shift | |
+ awk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(\[;*\??([0-9]+(;[0-9]+)*)?[A-Za-z])+/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' /tmp/vimpager_21974/stdin | |
+ '[' -z '' ']' | |
+ command -v gawk | |
+ _awk=gawk | |
+ command gawk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(\[;*\??([0-9]+(;[0-9]+)*)?[A-Za-z])+/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' /tmp/vimpager_21974/stdin | |
+ gawk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /(\[;*\??([0-9]+(;[0-9]+)*)?[A-Za-z])+/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' /tmp/vimpager_21974/stdin | |
+ '[' '' = 1 ']' | |
+ '[' -z '' ']' | |
+ head_n 12 /tmp/vimpager_21974/stdin | |
+ _lines=12 | |
+ shift | |
+ '[' -z '' ']' | |
+ grep_q '^NAME$' | |
+ _pat='^NAME$' | |
+ shift | |
+ awk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /^NAME$/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
+ '[' -z gawk ']' | |
+ command gawk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /^NAME$/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
+ gawk ' | |
BEGIN { exit_val = 1 } | |
$0 ~ /^NAME$/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
' | |
++ head -n 1 | |
++ echo xx | |
+ _head1_test=xx | |
+ '[' xx = xx ']' | |
+ _head_syntax=new | |
+ '[' new = new ']' | |
+ head -n 12 -- /tmp/vimpager_21974/stdin | |
+ '[' -n '' ']' | |
++ cat /tmp/vimpager_21974/stdin | |
++ wc -l /tmp/vimpager_21974/stdin | |
++ awk '{print $1}' | |
++ '[' -z gawk ']' | |
++ command gawk '{print $1}' | |
++ gawk '{print $1}' | |
+ '[' '(' '!' -s /tmp/vimpager_21974/stdin ')' -o '(' '(' '+ OLDIFS='\'' | |
'\'' | |
+ '\''['\'' -z '\'''\'' '\'']'\'' | |
+ content= | |
+ ts=8 | |
+ nl=0 | |
+ dh=22 | |
+ dw=80 | |
+ '\''['\'' 0 -le 22 '\'']'\'' | |
+ IFS='\'' | |
'\'' | |
+ read -r line | |
+ '\''['\'' 0 '\''!='\'' 0 -a -z '\''up to $LINES-2 lines'\'' '\'']'\'' | |
+ content='\''up to $LINES-2 lines | |
'\'' | |
+ nl=1 | |
+ w=0 | |
+ t=23 | |
+ IFS='\'' '\'' | |
+ for a in . '\''${line}.'\'' | |
+ '\''['\'' 0 -gt 0 '\'']'\'' | |
+ w=1 | |
+ t=22 | |
+ for a in . '\''${line}.'\'' | |
+ '\''['\'' 1 -gt 0 '\'']'\'' | |
+ w=8 | |
+ t=21 | |
+ w=29 | |
+ t=0 | |
+ w=20 | |
+ nl=1 | |
+ '\''['\'' 1 -le 22 '\'']'\'' | |
+ IFS='\'' | |
'\'' | |
+ read -r line | |
+ '\''['\'' 1 '\''!='\'' 0 -a -z '\'''\'' '\'']'\'' | |
+ echo '\''up to $LINES-2 lines | |
'\'' | |
+ grep_q '\''\[[^m]*m'\'' | |
+ _pat='\''\[[^m]*m'\'' | |
+ shift | |
+ awk '\'' | |
BEGIN { exit_val = 1 } | |
$0 ~ /\[[^m]*m/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
'\'' | |
+ '\''['\'' -z '\'''\'' '\'']'\'' | |
+ command -v gawk | |
+ _awk=gawk | |
+ command gawk '\'' | |
BEGIN { exit_val = 1 } | |
$0 ~ /\[[^m]*m/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
'\'' | |
+ gawk '\'' | |
BEGIN { exit_val = 1 } | |
$0 ~ /\[[^m]*m/ { exit_val = 0; exit(exit_val) } | |
END { exit(exit_val) } | |
'\'' | |
+ echo '\'''\'' | |
+ break | |
+ IFS='\'' | |
'\'' | |
+ '\''['\'' x1 '\''!='\'' x '\'']'\'' | |
+ '\''['\'' -z '\'''\'' '\'']'\'' | |
+ '\''['\'' -z '\'''\'' '\'']'\'' | |
+ printf %s '\''up to $LINES-2 lines | |
'\'' | |
+ exec /bin/cat | |
+ perl -CIOL -pe '\''no warnings "utf8"; s/.\010//g'\'' | |
up to $LINES-2 lines' = '' ')' -a '(' 71 = 1 ')' ')' ']' | |
+ '[' -n '' ']' | |
+ vim_less -c echo --cmd 'let vimpager_ptree=["zsh","bash",] | call remove(vimpager_ptree, -1)' | |
+ extract_bundled_scripts | |
+ mkdir /tmp/vimpager_21974/extra_vim_home | |
+ cd /tmp/vimpager_21974/extra_vim_home | |
+ mkdir macros autoload | |
+ cd macros | |
+ less_vim | |
+ cat | |
+ do_uudecode | |
+ command -v uudecode | |
+ command -v guudecode | |
+ _uudecode= | |
+ '[' -n '' ']' | |
+ command -v perl | |
+ perl -e ' | |
binmode STDOUT; # for win32 perls | |
<>; | |
while (<>) { | |
last if /^end$/; | |
print unpack("u", $_); | |
} | |
' | |
+ return 0 | |
+ cd autoload | |
+ vimpager_vim | |
+ cat | |
+ do_uudecode | |
+ command -v uudecode | |
+ command -v guudecode | |
+ _uudecode= | |
+ '[' -n '' ']' | |
+ command -v perl | |
+ perl -e ' | |
binmode STDOUT; # for win32 perls | |
<>; | |
while (<>) { | |
last if /^end$/; | |
print unpack("u", $_); | |
} | |
' | |
+ return 0 | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -f /tmp/vimpager_21974/use_vimcat ']' | |
+ cd /tmp/vimpager_21974 | |
+ vimcat_script | |
+ cat | |
+ do_uudecode | |
+ command -v uudecode | |
+ command -v guudecode | |
+ _uudecode= | |
+ '[' -n '' ']' | |
+ command -v perl | |
+ perl -e ' | |
binmode STDOUT; # for win32 perls | |
<>; | |
while (<>) { | |
last if /^end$/; | |
print unpack("u", $_); | |
} | |
' | |
+ return 0 | |
+ chmod +x ./vimcat | |
+ '[' -n '' ']' | |
+ ansi_command='silent! echo' | |
+ '[' -f /tmp/vimpager_21974/use_vimcat ']' | |
+ cd /tmp/vimpager_21974 | |
+ unset _MY_SHELL | |
+ unset IN_BASH | |
+ unset IN_KSH | |
+ ./vimcat -u /usr/local/etc/vimpagerrc --cmd 'set rtp^=/tmp/vimpager_21974/extra_vim_home | let vimpager=1' -c 'set fdl=9999' -c echo --cmd 'let vimpager_ptree=["zsh","bash",] | call remove(vimpager_ptree, -1)' /tmp/vimpager_21974/stdin | |
cat: /tmp/vimcat_22105/vimcat_out.txt: No such file or directory | |
tail: cannot open ‘/tmp/vimcat_22105/vimcat_out.txt’ for reading: No such file or directory | |
+ cd /tmp/vimpager_21974/.. | |
+ rm -rf /tmp/vimpager_21974 gvim.exe.stackdump | |
+ return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment