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

Re: PATCH: completions for su and implicit fg/bg



Sven Wischnowsky wrote:
> Peter Stephenson wrote:
> > Just trying compset -q to enhance completion for *sh -c:

OK, the next problem seems to be that using ^D removes the quotes, although
other completion functions don't.  I'm using

  #compdef sh ksh bash zsh csh tcsh rc

  local cword=

  if (( CURRENT == ${words[(i)-c]} + 1 )); then
    compset -q
    _normal
  fi

and typing
  
  % sh -c 'e^D

but what follows the open quote doesn't seem to matter.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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