Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Completion/User/_cvs again.



In article <990907222631.ZM11028@xxxxxxxxxxxxxxxxxxxxxxx>,
  "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> As long as we're talking style, why do with a `case` what you can do with
> substitution?  I think the following is a lot more easily maintained, if
> maybe a bit less readable ...

Good. But it has a problem.

is27e1u11% cvs D <TAB>
month\ ago   today        week\ ago    yesterday    

Index: Completion/User/_cvs
===================================================================
RCS file: /projects/zsh/zsh/Completion/User/_cvs,v
retrieving revision 1.1.1.6
diff -u -F^( -r1.1.1.6 _cvs
--- _cvs	1999/09/07 22:28:46	1.1.1.6
+++ _cvs	1999/09/07 22:53:25
@@ -35,11 +35,14 @@
   if (( CURRENT == 1 )); then
     compadd "$@" ${(k)cmds} || compadd "$@" ${(kv)=cmds}
   else
-    _cvs_"${${(k)cmds[(R)* $words[1] *]}:-$words[1]}" 2>&- ||
-      _message "unknown cvs command: $words[1]"
+    _cvs_"${${(k)cmds[(R)* $words[1] *]}:-${words[1]:#*~(${(@kj:|:)~cmds})}}"
   fi
 }
 
+_cvs_ () {
+  _message "unknown cvs command: $words[1]"
+}
+
 # define completion functions for each cvs command
 
 builtin functions _cvs_add >&- ||
@@ -582,9 +585,11 @@
 
 # define configuration variables.
 
+local tmp
+
 (( $+_cvs_roots )) ||
-if [[ -f ~/.cvspass ]]; then
-  _cvs_roots=(${${(f)"$(<~/.cvspass)"}%% *})
+if [[ -f "${tmp::=${CVS_PASSFILE:-$HOME/.cvspass}}" ]]; then
+  _cvs_roots=(${${(f)"$(<$tmp)"}%% *})
 else
   _cvs_roots=()
 fi

Also, I found that `cvs diff <TAB>' causes core dump.

Z(2):akr@is27e1u11% Src/zsh -f                          
is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d' describe_options=yes   
is27e1u11% cvs diff zsh: segmentation fault (core dumped)  Src/zsh -f
Z(2):akr@is27e1u11% gdb Src/zsh core
GNU gdb 19981224
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7"...
Core was generated by `Src/zsh -f'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libcurses.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
Reading symbols from /usr/lib/locale/ja/ja.so.2...done.
Reading symbols from /usr/lib/locale/ja/methods_ja.so.2...done.
Reading symbols from /space/akr/zsh/lib/zsh/3.1.6-pws-3/comp1.so...done.
Reading symbols from /space/akr/zsh/lib/zsh/3.1.6-pws-3/zle.so...done.
Reading symbols from /space/akr/zsh/lib/zsh/3.1.6-pws-3/compctl.so...done.
Reading symbols from /space/akr/zsh/lib/zsh/3.1.6-pws-3/stat.so...done.
#0  0x9dcc8 in bslashquote (
---Type <return> to continue, or q <return> to quit---
    s=0x285540 "--binary", ' ' <repeats 18 times>, "--ignore-space-change     --report-identical-files  -2", ' ' <repeats 24 times>, "-I", ' ' <repeats 24 times>, "-i\n--brief", ' ' <repeats 19 times>, "--initial-tab", ' ' <repeats 13 times>, "--show-c-functi"..., e=0x0, instring=0) at utils.c:2995
2995            if(*u == Meta)
(gdb) where
#0  0x9dcc8 in bslashquote (
    s=0x285540 "--binary", ' ' <repeats 18 times>, "--ignore-space-change     --report-identical-files  -2", ' ' <repeats 24 times>, "-I", ' ' <repeats 24 times>, "-i\n--brief", ' ' <repeats 19 times>, "--initial-tab", ' ' <repeats 13 times>, "--show-c-functi"..., e=0x0, instring=0) at utils.c:2995
#1  0x8f6d0 in paramsubst (l=0x284220, n=0x284260, str=0xffbe459c, qt=1, 
    ssub=0) at subst.c:1652
#2  0x87f24 in stringsubst (list=0x284220, node=0x284260, ssub=0)
    at subst.c:122
#3  0x87b38 in prefork (list=0x284220, flags=0) at subst.c:71
#4  0x320a0 in execcmd (cmd=0x2741e8, input=0, output=0, how=2, last1=2)
    at exec.c:1511
#5  0x30330 in execpline2 (pline=0x274ca8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#6  0x2f490 in execpline (l=0x271b00, how=2, last1=0) at exec.c:875
#7  0x2edb8 in execlist (list=0x274c90, dont_change_job=1, exiting=0)
    at exec.c:744
#8  0x5fa34 in execif (cmd=0x24d3f8, args=0x0, flags=0) at loop.c:409
#9  0x343cc in execcmd (cmd=0x24d3f8, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#10 0x30330 in execpline2 (pline=0x27fb90, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#11 0x2f490 in execpline (l=0x2717a0, how=2, last1=0) at exec.c:875
---Type <return> to continue, or q <return> to quit---
#12 0x2edb8 in execlist (list=0x27fb78, dont_change_job=1, exiting=0)
    at exec.c:744
#13 0x37bf4 in execautofn (cmd=0x1307b0, args=0x0, flags=0) at exec.c:2907
#14 0x343cc in execcmd (cmd=0x1307b0, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#15 0x30330 in execpline2 (pline=0x131918, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#16 0x2f490 in execpline (l=0x132820, how=2, last1=0) at exec.c:875
#17 0x2edb8 in execlist (list=0x131930, dont_change_job=1, exiting=0)
    at exec.c:744
#18 0x382c0 in runshfunc (list=0x131930, wrap=0x0, name=0x131948 "_display")
    at exec.c:3029
#19 0xff04bc5c in comp_wrapper (list=0x131930, w=0x0, name=0x131948 "_display")
    at compctl.c:2419
#20 0x381f0 in runshfunc (list=0x131930, wrap=0xff05d7f0, 
    name=0x131948 "_display") at exec.c:3016
#21 0x37ee8 in doshfunc (name=0x131948 "_display", list=0x131930, 
    doshargs=0x26e380, flags=2176, noreturnval=0) at exec.c:2967
#22 0x378cc in execshfunc (cmd=0x249a38, shf=0x1318a0, args=0x26e380)
    at exec.c:2860
#23 0x3465c in execcmd (cmd=0x249a38, input=0, output=0, how=2, last1=2)
    at exec.c:2022
#24 0x30330 in execpline2 (pline=0x24a4d8, how=2, input=0, output=0, last1=0)
---Type <return> to continue, or q <return> to quit---
    at exec.c:1060
#25 0x2f490 in execpline (l=0x2489b0, how=2, last1=0) at exec.c:875
#26 0x2edb8 in execlist (list=0x24a4c0, dont_change_job=1, exiting=0)
    at exec.c:744
#27 0x5f8b4 in execif (cmd=0x249a10, args=0x0, flags=0) at loop.c:397
#28 0x343cc in execcmd (cmd=0x249a10, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#29 0x30330 in execpline2 (pline=0x24a490, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#30 0x2f490 in execpline (l=0x248990, how=2, last1=0) at exec.c:875
#31 0x2edb8 in execlist (list=0x24a478, dont_change_job=1, exiting=0)
    at exec.c:744
#32 0x5fa34 in execif (cmd=0x249970, args=0x0, flags=0) at loop.c:409
#33 0x343cc in execcmd (cmd=0x249970, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#34 0x30330 in execpline2 (pline=0x24a3b8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#35 0x2f490 in execpline (l=0x248950, how=2, last1=0) at exec.c:875
#36 0x2edb8 in execlist (list=0x24a3a0, dont_change_job=1, exiting=0)
    at exec.c:744
#37 0x5fa34 in execif (cmd=0x246628, args=0x0, flags=0) at loop.c:409
#38 0x343cc in execcmd (cmd=0x246628, input=0, output=0, how=2, last1=2)
    at exec.c:1985
---Type <return> to continue, or q <return> to quit---
#39 0x30330 in execpline2 (pline=0x2485a0, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#40 0x2f490 in execpline (l=0x2486b0, how=2, last1=0) at exec.c:875
#41 0x2edb8 in execlist (list=0x248588, dont_change_job=1, exiting=0)
    at exec.c:744
#42 0x5fa34 in execif (cmd=0x246560, args=0x0, flags=0) at loop.c:409
#43 0x343cc in execcmd (cmd=0x246560, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#44 0x30330 in execpline2 (pline=0x248390, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#45 0x2f490 in execpline (l=0x248630, how=2, last1=0) at exec.c:875
#46 0x2edb8 in execlist (list=0x248378, dont_change_job=1, exiting=0)
    at exec.c:744
#47 0x5f394 in execwhile (cmd=0x242ff8, args=0x0, flags=0) at loop.c:325
#48 0x343cc in execcmd (cmd=0x242ff8, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#49 0x30330 in execpline2 (pline=0x244d90, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#50 0x2f490 in execpline (l=0x244170, how=2, last1=0) at exec.c:875
#51 0x2edb8 in execlist (list=0x244d78, dont_change_job=1, exiting=0)
    at exec.c:744
#52 0x382c0 in runshfunc (list=0x19d7e8, wrap=0x0, name=0x12da18 "_arguments")
    at exec.c:3029
---Type <return> to continue, or q <return> to quit---
#53 0xff04bc5c in comp_wrapper (list=0x19d7e8, w=0x0, 
    name=0x12da18 "_arguments") at compctl.c:2419
#54 0x381f0 in runshfunc (list=0x19d7e8, wrap=0xff05d7f0, 
    name=0x12da18 "_arguments") at exec.c:3016
#55 0x37ee8 in doshfunc (name=0x12da18 "_arguments", list=0x19d7e8, 
    doshargs=0x25b998, flags=2048, noreturnval=0) at exec.c:2967
#56 0x378cc in execshfunc (cmd=0x190dc8, shf=0x12d9d0, args=0x25b998)
    at exec.c:2860
#57 0x3465c in execcmd (cmd=0x190dc8, input=0, output=0, how=2, last1=2)
    at exec.c:2022
#58 0x30330 in execpline2 (pline=0x192cd8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#59 0x2f490 in execpline (l=0x18fc68, how=2, last1=0) at exec.c:875
#60 0x2edb8 in execlist (list=0x192cc0, dont_change_job=1, exiting=0)
    at exec.c:744
#61 0x382c0 in runshfunc (list=0x192cc0, wrap=0x0, name=0x193580 "_cvs_diff")
    at exec.c:3029
#62 0xff04bc5c in comp_wrapper (list=0x192cc0, w=0x0, 
    name=0x193580 "_cvs_diff") at compctl.c:2419
#63 0x381f0 in runshfunc (list=0x192cc0, wrap=0xff05d7f0, 
    name=0x193580 "_cvs_diff") at exec.c:3016
#64 0x37ee8 in doshfunc (name=0x193580 "_cvs_diff", list=0x192cc0, 
    doshargs=0x254800, flags=0, noreturnval=0) at exec.c:2967
---Type <return> to continue, or q <return> to quit---
#65 0x378cc in execshfunc (cmd=0x190a58, shf=0x192ca8, args=0x254800)
    at exec.c:2860
#66 0x3465c in execcmd (cmd=0x190a58, input=0, output=0, how=2, last1=2)
    at exec.c:2022
#67 0x30330 in execpline2 (pline=0x192038, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#68 0x2f490 in execpline (l=0x18f988, how=2, last1=0) at exec.c:875
#69 0x2edb8 in execlist (list=0x192020, dont_change_job=1, exiting=0)
    at exec.c:744
#70 0x5fa34 in execif (cmd=0x1909b8, args=0x0, flags=0) at loop.c:409
#71 0x343cc in execcmd (cmd=0x1909b8, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#72 0x30330 in execpline2 (pline=0x191e70, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#73 0x2f490 in execpline (l=0x18f908, how=2, last1=0) at exec.c:875
#74 0x2edb8 in execlist (list=0x191e58, dont_change_job=1, exiting=0)
    at exec.c:744
#75 0x382c0 in runshfunc (list=0x190828, wrap=0x0, 
    name=0x192068 "_cvs_command") at exec.c:3029
#76 0xff04bc5c in comp_wrapper (list=0x190828, w=0x0, 
    name=0x192068 "_cvs_command") at compctl.c:2419
#77 0x381f0 in runshfunc (list=0x190828, wrap=0xff05d7f0, 
    name=0x192068 "_cvs_command") at exec.c:3016
---Type <return> to continue, or q <return> to quit---
#78 0x37ee8 in doshfunc (name=0x192068 "_cvs_command", list=0x190828, 
    doshargs=0x253f58, flags=0, noreturnval=0) at exec.c:2967
#79 0x378cc in execshfunc (cmd=0x246538, shf=0x135450, args=0x253f58)
    at exec.c:2860
#80 0x3465c in execcmd (cmd=0x246538, input=0, output=0, how=2, last1=2)
    at exec.c:2022
#81 0x30330 in execpline2 (pline=0x2482e8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#82 0x2f490 in execpline (l=0x2485f0, how=2, last1=0) at exec.c:875
#83 0x2edb8 in execlist (list=0x2482d0, dont_change_job=1, exiting=0)
    at exec.c:744
#84 0x5fa34 in execif (cmd=0x2461c8, args=0x0, flags=0) at loop.c:409
#85 0x343cc in execcmd (cmd=0x2461c8, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#86 0x30330 in execpline2 (pline=0x247390, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#87 0x2f490 in execpline (l=0x246be0, how=2, last1=0) at exec.c:875
#88 0x2edb8 in execlist (list=0x247378, dont_change_job=1, exiting=0)
    at exec.c:744
#89 0x5fa34 in execif (cmd=0x245fc0, args=0x0, flags=0) at loop.c:409
#90 0x343cc in execcmd (cmd=0x245fc0, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#91 0x30330 in execpline2 (pline=0x245c20, how=2, input=0, output=0, last1=0)
---Type <return> to continue, or q <return> to quit---
    at exec.c:1060
#92 0x2f490 in execpline (l=0x246920, how=2, last1=0) at exec.c:875
#93 0x2edb8 in execlist (list=0x245c08, dont_change_job=1, exiting=0)
    at exec.c:744
#94 0x5fa34 in execif (cmd=0x243048, args=0x0, flags=0) at loop.c:409
#95 0x343cc in execcmd (cmd=0x243048, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#96 0x30330 in execpline2 (pline=0x244e20, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#97 0x2f490 in execpline (l=0x2441b0, how=2, last1=0) at exec.c:875
#98 0x2edb8 in execlist (list=0x244e08, dont_change_job=1, exiting=0)
    at exec.c:744
#99 0x5f394 in execwhile (cmd=0x242ff8, args=0x0, flags=0) at loop.c:325
#100 0x343cc in execcmd (cmd=0x242ff8, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#101 0x30330 in execpline2 (pline=0x244d90, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#102 0x2f490 in execpline (l=0x244170, how=2, last1=0) at exec.c:875
#103 0x2edb8 in execlist (list=0x244d78, dont_change_job=1, exiting=0)
    at exec.c:744
#104 0x37bf4 in execautofn (cmd=0xcec98, args=0x0, flags=0) at exec.c:2907
#105 0x343cc in execcmd (cmd=0xcec98, input=0, output=0, how=2, last1=2)
    at exec.c:1985
---Type <return> to continue, or q <return> to quit---
#106 0x30330 in execpline2 (pline=0x12d9e8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#107 0x2f490 in execpline (l=0x12dc60, how=2, last1=0) at exec.c:875
#108 0x2edb8 in execlist (list=0x12da00, dont_change_job=1, exiting=0)
    at exec.c:744
#109 0x382c0 in runshfunc (list=0x12da00, wrap=0x0, name=0x12da18 "_arguments")
    at exec.c:3029
#110 0xff04bc5c in comp_wrapper (list=0x12da00, w=0x0, 
    name=0x12da18 "_arguments") at compctl.c:2419
#111 0x381f0 in runshfunc (list=0x12da00, wrap=0xff05d7f0, 
    name=0x12da18 "_arguments") at exec.c:3016
#112 0x37ee8 in doshfunc (name=0x12da18 "_arguments", list=0x12da00, 
    doshargs=0x1a21a0, flags=2176, noreturnval=0) at exec.c:2967
#113 0x378cc in execshfunc (cmd=0x1908a0, shf=0x12d9d0, args=0x1a21a0)
    at exec.c:2860
#114 0x3465c in execcmd (cmd=0x1908a0, input=0, output=0, how=2, last1=2)
    at exec.c:2022
#115 0x30330 in execpline2 (pline=0x190630, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#116 0x2f490 in execpline (l=0x18f808, how=2, last1=0) at exec.c:875
#117 0x2edb8 in execlist (list=0x190618, dont_change_job=1, exiting=0)
    at exec.c:744
#118 0x382c0 in runshfunc (list=0x190618, 
wrap=0x0, name=0x1900d0 "_cvs")
---Type <return> to continue, or q <return> to quit---
    at exec.c:3029
#119 0xff04bc5c in comp_wrapper (list=0x190618, w=0x0, name=0x1900d0 "_cvs")
    at compctl.c:2419
#120 0x381f0 in runshfunc (list=0x190618, wrap=0xff05d7f0, 
    name=0x1900d0 "_cvs") at exec.c:3016
#121 0x37ee8 in doshfunc (name=0x1900d0 "_cvs", list=0x190618, 
    doshargs=0x1a20c8, flags=0, noreturnval=0) at exec.c:2967
#122 0x378cc in execshfunc (cmd=0x190878, shf=0x190600, args=0x1a20c8)
    at exec.c:2860
#123 0x3465c in execcmd (cmd=0x190878, input=0, output=0, how=2, last1=2)
    at exec.c:2022
#124 0x30330 in execpline2 (pline=0x1905b8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#125 0x2f490 in execpline (l=0x18f7e8, how=2, last1=0) at exec.c:875
#126 0x2edb8 in execlist (list=0x1905a0, dont_change_job=1, exiting=0)
    at exec.c:744
#127 0x37bf4 in execautofn (cmd=0x130c10, args=0x0, flags=0) at exec.c:2907
#128 0x343cc in execcmd (cmd=0x130c10, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#129 0x30330 in execpline2 (pline=0x135570, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#130 0x2f490 in execpline (l=0x132ba0, how=2, last1=0) at exec.c:875
#131 0x2edb8 in execlist (list=0x1354e0, dont_change_job=1, exiting=0)
---Type <return> to continue, or q <return> to quit---
    at exec.c:744
#132 0x382c0 in runshfunc (list=0x1354e0, wrap=0x0, name=0x12fc60 "")
    at exec.c:3029
#133 0xff04bc5c in comp_wrapper (list=0x1354e0, w=0x0, name=0x12fc60 "")
    at compctl.c:2419
#134 0x381f0 in runshfunc (list=0x1354e0, wrap=0xff05d7f0, name=0x12fc60 "")
    at exec.c:3016
#135 0x37ee8 in doshfunc (name=0x12fc60 "", list=0x1354e0, doshargs=0xf9fa0, 
    flags=2176, noreturnval=0) at exec.c:2967
#136 0x378cc in execshfunc (cmd=0xcf558, shf=0x135450, args=0xf9fa0)
    at exec.c:2860
#137 0x3465c in execcmd (cmd=0xcf558, input=0, output=0, how=2, last1=2)
    at exec.c:2022
#138 0x30330 in execpline2 (pline=0x114d38, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#139 0x2f490 in execpline (l=0x1190f8, how=2, last1=0) at exec.c:875
#140 0x2eddc in execlist (list=0x118520, dont_change_job=1, exiting=0)
    at exec.c:750
#141 0x5fa34 in execif (cmd=0x117168, args=0x0, flags=0) at loop.c:409
#142 0x343cc in execcmd (cmd=0x117168, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#143 0x30330 in execpline2 (pline=0x113bd0, how=2, input=0, output=0, last1=0)
    at exec.c:1060
---Type <return> to continue, or q <return> to quit---
#144 0x2f490 in execpline (l=0x1164c8, how=2, last1=0) at exec.c:875
#145 0x2edb8 in execlist (list=0x1196c0, dont_change_job=1, exiting=0)
    at exec.c:744
#146 0x37bf4 in execautofn (cmd=0x130918, args=0x0, flags=0) at exec.c:2907
#147 0x343cc in execcmd (cmd=0x130918, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#148 0x30330 in execpline2 (pline=0x138c68, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#149 0x2f490 in execpline (l=0x132940, how=2, last1=0) at exec.c:875
#150 0x2edb8 in execlist (list=0x138c80, dont_change_job=1, exiting=0)
    at exec.c:744
#151 0x382c0 in runshfunc (list=0x138c80, wrap=0x0, name=0x1335b8 "_normal")
    at exec.c:3029
#152 0xff04bc5c in comp_wrapper (list=0x138c80, w=0x0, name=0x1335b8 "_normal")
    at compctl.c:2419
#153 0x381f0 in runshfunc (list=0x138c80, wrap=0xff05d7f0, 
    name=0x1335b8 "_normal") at exec.c:3016
#154 0x37ee8 in doshfunc (name=0x1335b8 "_normal", list=0x138c80, 
    doshargs=0xe8c88, flags=2176, noreturnval=0) at exec.c:2967
#155 0x378cc in execshfunc (cmd=0xcf490, shf=0x138bf0, args=0xe8c88)
    at exec.c:2860
#156 0x3465c in execcmd (cmd=0xcf490, input=0, output=0, how=2, last1=2)
    at exec.c:2022
---Type <return> to continue, or q <return> to quit---
#157 0x30330 in execpline2 (pline=0x1160c8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#158 0x2f490 in execpline (l=0x1168e8, how=2, last1=0) at exec.c:875
#159 0x2edb8 in execlist (list=0x115d50, dont_change_job=1, exiting=0)
    at exec.c:744
#160 0x5fa34 in execif (cmd=0xcf378, args=0x0, flags=0) at loop.c:409
#161 0x343cc in execcmd (cmd=0xcf378, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#162 0x30330 in execpline2 (pline=0x11abe0, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#163 0x2f490 in execpline (l=0x116688, how=2, last1=0) at exec.c:875
#164 0x2edb8 in execlist (list=0x117988, dont_change_job=1, exiting=0)
    at exec.c:744
#165 0x37bf4 in execautofn (cmd=0x130738, args=0x0, flags=0) at exec.c:2907
#166 0x343cc in execcmd (cmd=0x130738, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#167 0x30330 in execpline2 (pline=0x1317f8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#168 0x2f490 in execpline (l=0x1327c0, how=2, last1=0) at exec.c:875
#169 0x2edb8 in execlist (list=0x131810, dont_change_job=1, exiting=0)
    at exec.c:744
#170 0x382c0 in runshfunc (list=0x131810, wrap=0x0, name=0x131828 "_complete")
    at exec.c:3029
---Type <return> to continue, or q <return> to quit---
#171 0xff04bc5c in comp_wrapper (list=0x131810, w=0x0, 
    name=0x131828 "_complete") at compctl.c:2419
#172 0x381f0 in runshfunc (list=0x131810, wrap=0xff05d7f0, 
    name=0x131828 "_complete") at exec.c:3016
#173 0x37ee8 in doshfunc (name=0x131828 "_complete", list=0x131810, 
    doshargs=0x12a5e0, flags=2176, noreturnval=0) at exec.c:2967
#174 0x378cc in execshfunc (cmd=0x119ca0, shf=0x131720, args=0x12a5e0)
    at exec.c:2860
#175 0x3465c in execcmd (cmd=0x119ca0, input=0, output=0, how=2, last1=2)
    at exec.c:2022
#176 0x30330 in execpline2 (pline=0x117f18, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#177 0x2f490 in execpline (l=0x11b830, how=2, last1=0) at exec.c:875
#178 0x2edb8 in execlist (list=0x117f00, dont_change_job=1, exiting=0)
    at exec.c:744
#179 0x5f8b4 in execif (cmd=0xcf260, args=0x0, flags=0) at loop.c:397
#180 0x343cc in execcmd (cmd=0xcf260, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#181 0x30330 in execpline2 (pline=0x115df8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#182 0x2f490 in execpline (l=0x11b850, how=2, last1=0) at exec.c:875
#183 0x2edb8 in execlist (list=0x117e70, dont_change_job=1, exiting=0)
    at exec.c:744
---Type <return> to continue, or q <return> to quit---
#184 0x5e45c in execfor (cmd=0xcf328, args=0x12a5a0, flags=0) at loop.c:117
#185 0x343cc in execcmd (cmd=0xcf328, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#186 0x30330 in execpline2 (pline=0x117e58, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#187 0x2f490 in execpline (l=0x1166e8, how=2, last1=0) at exec.c:875
#188 0x2edb8 in execlist (list=0x1156d0, dont_change_job=1, exiting=0)
    at exec.c:744
#189 0x37bf4 in execautofn (cmd=0x130850, args=0x0, flags=0) at exec.c:2907
#190 0x343cc in execcmd (cmd=0x130850, input=0, output=0, how=2, last1=2)
    at exec.c:1985
#191 0x30330 in execpline2 (pline=0x138ab8, how=2, input=0, output=0, last1=0)
    at exec.c:1060
#192 0x2f490 in execpline (l=0x1328a0, how=2, last1=0) at exec.c:875
#193 0x2edb8 in execlist (list=0x138ad0, dont_change_job=1, exiting=0)
    at exec.c:744
#194 0x382c0 in runshfunc (list=0x138ad0, wrap=0x0, 
    name=0x12d838 "_main_complete") at exec.c:3029
#195 0xff04bc5c in comp_wrapper (list=0x138ad0, w=0x0, 
    name=0x12d838 "_main_complete") at compctl.c:2419
#196 0x381f0 in runshfunc (list=0x138ad0, wrap=0xff05d7f0, 
    name=0x12d838 "_main_complete") at exec.c:3016
#197 0x37ee8 in doshfunc (name=0x12d838 "_main_complete", list=0x138ad0, 
---Type <return> to continue, or q <return> to quit---
    doshargs=0x0, flags=0, noreturnval=0) at exec.c:2967
#198 0xff0a9c0c in callcompfunc (s=0xd1cd0 "", fn=0x12d838 "_main_complete")
    at zle_tricky.c:4834
#199 0xff0aa5f4 in makecomplist (s=0xd1cd0 "", incmd=0, lst=0)
    at zle_tricky.c:4993
#200 0xff0a8464 in docompletion (s=0x114a98 "", lst=0, incmd=0)
    at zle_tricky.c:4505
#201 0xff09a9cc in docomplete (lst=0) at zle_tricky.c:1086
#202 0xff097ce8 in expandorcomplete (args=0xff0d8888) at zle_tricky.c:491
#203 0xff097778 in completecall (args=0xff0d8888) at zle_tricky.c:390
#204 0xff0889f4 in execzlefunc (func=0xff0d67e4, args=0xff0d8888)
    at zle_main.c:628
#205 0xff0884e8 in zleread (lp=0xccd30 "%m%# ", rp=0x0, flags=3)
    at zle_main.c:547
#206 0x50d64 in inputline () at input.c:265
#207 0x50b30 in ingetc () at input.c:210
#208 0x469a0 in ihgetc () at hist.c:242
#209 0x58b78 in gettok () at lex.c:545
#210 0x57edc in yylex () at lex.c:308
#211 0x75e90 in parse_event () at parse.c:105
#212 0x4d580 in loop (toplevel=1, justonce=0) at init.c:113
#213 0x1aa28 in main (argc=2, argv=0xffbef484) at ./main.c:89
(gdb) print u
$1 = 0x5c285a35 <Address 0x5c285a35 out of bounds>
(gdb) 
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author