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

seg fault from _arguments



This is using a zsh I compiled yesterday from the development branch:

To reproduce it do:
	mount -ob<tab>

There would need to be a space after the -o for this to complete to
something useful and it works well if a space is there. I just missed it
once.

Sven Wischnowsky wrote:
> 
> > worked. I don't suppose it is only the -S separator (as opposed to -s)
> > that compvalues doesn't like an empty string?
> 
> Yes.  Until now.

Great, thanks.

> Hrm.  I don't like either place for it.  These builtins are so
> specialised that they won't be of any use outside _values and
> _arguments.  Would it be enough if I add some comments in computil.c in
> the bin_* functions?

That would be fine and as good a place as any.

Also, if I replace the top of _values with this:
  local garbage subopts usecc
  zparseopts -D -a garbage C=usecc O:=subopts M: J: V: 1 2 n F: X:
  subopts=( "${(@P)subopts[2]}" )
why does completion after `mount -o block=' not work. I get things like
`%Bblock\ size%b', `-M', `-J', `ws' (i.e compadd options) offered as
completions instead of 512, 1024 and 2048. Note that this is on Linux so
that part of _mount.

Oliver



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