zsh-workers
 help / color / mirror / code / Atom feed
* Re: zsh-3.1.6-pws-10: sudo completion does not work again
@ 1999-11-30 14:28 Sven Wischnowsky
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Wischnowsky @ 1999-11-30 14:28 UTC (permalink / raw)
  To: zsh-workers


[ Like Adam I had trouble getting this through to sunsite, hope it
  works now. ]

Andrej Borsenkow wrote:

> ...
>
> > > bor@itsrm2:~%> sudo um<TAB>   (implying umount)
> > > _tags:9: job table full or recursion limit exceeded
>
> ...
> 
> Still, I believe, such condition(s) should be handled more gracefully. The above
> error message is really meaningless to end user.

1) As long as the completion functions are correct, they won't see
   such messages.
2) Yes, maybe, but: how? The only thing I could think about here is to 
   make _normal check if it got called with the same words/CURRENT/etc 
   as on the last call and then do some error handling if it was.
   Looks a bit weird. Somehow. Dunno.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zsh-3.1.6-pws-10: sudo completion does not work again
  1999-11-30 11:43 Sven Wischnowsky
  1999-11-30 12:14 ` Andrej Borsenkow
@ 1999-11-30 14:47 ` Clint Adams
  1 sibling, 0 replies; 7+ messages in thread
From: Clint Adams @ 1999-11-30 14:47 UTC (permalink / raw)
  To: Sven Wischnowsky; +Cc: zsh-workers

>      _arguments \
>        ...
>        '*::command and arguments: _normal'

Err.. can we include this upstream?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zsh-3.1.6-pws-10: sudo completion does not work again
@ 1999-11-30 14:42 Sven Wischnowsky
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Wischnowsky @ 1999-11-30 14:42 UTC (permalink / raw)
  To: zsh-workers


I wrote:

> [ Like Adam I had trouble getting this through to sunsite, hope it
>   works now. ]

Uh. Unlike Adam, then (didn't try to send to -announce).

But still... sunsite.auc.dk is down pretty often.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: zsh-3.1.6-pws-10: sudo completion does not work again
  1999-11-30 11:43 Sven Wischnowsky
@ 1999-11-30 12:14 ` Andrej Borsenkow
  1999-11-30 14:47 ` Clint Adams
  1 sibling, 0 replies; 7+ messages in thread
From: Andrej Borsenkow @ 1999-11-30 12:14 UTC (permalink / raw)
  To: Sven Wischnowsky, zsh-workers

>
> > This completion does not work again.
>
> Did it once work?
>

Mmm ... I believe, yes :-)

> > ...
> >         '::complete command and/or arguments:_normal'
> >
> > and if I try to call it:
> >
> > bor@itsrm2:~%> sudo um<TAB>   (implying umount)
> > _tags:9: job table full or recursion limit exceeded
>
> The line above describes an optional argument. It does not say that
> the completion system should continue with only some of the words from
> the line.
>

Thank you. I suspected something like this. Sorry for stupid question, but for
the last couple of months I was almost the whole time off and simply could not
keep up with rapid changes.

Still, I believe, such condition(s) should be handled more gracefully. The above
error message is really meaningless to end user.


/andrej


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zsh-3.1.6-pws-10: sudo completion does not work again
@ 1999-11-30 12:08 Sven Wischnowsky
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Wischnowsky @ 1999-11-30 12:08 UTC (permalink / raw)
  To: zsh-workers


I wrote:

> You want:
> 
>      _arguments \
>        ...
>        '*::command and arguments: _normal'
> 
> And that works.

I forgot to say: what you really want is, I think, this:

  ':command: _command_names -e' \
  '*::arguments:_normal' 

So that you don't get the builtins.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zsh-3.1.6-pws-10: sudo completion does not work again
@ 1999-11-30 11:43 Sven Wischnowsky
  1999-11-30 12:14 ` Andrej Borsenkow
  1999-11-30 14:47 ` Clint Adams
  0 siblings, 2 replies; 7+ messages in thread
From: Sven Wischnowsky @ 1999-11-30 11:43 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> This completion does not work again.

Did it once work?

> ...
>         '::complete command and/or arguments:_normal' 
> 
> and if I try to call it:
> 
> bor@itsrm2:~%> sudo um<TAB>   (implying umount)   
> _tags:9: job table full or recursion limit exceeded

The line above describes an optional argument. It does not say that
the completion system should continue with only some of the words from 
the line.

You want:

     _arguments \
       ...
       '*::command and arguments: _normal'

And that works.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 7+ messages in thread

* zsh-3.1.6-pws-10: sudo completion does not work again
@ 1999-11-30 10:45 Andrej Borsenkow
  0 siblings, 0 replies; 7+ messages in thread
From: Andrej Borsenkow @ 1999-11-30 10:45 UTC (permalink / raw)
  To: ZSH workers mailing list

Hi!

This completion does not work again.

bor@itsrm2:~%> cat ~/.zsh.d/completion/_sudo
#compdef sudo

_arguments \
        '-V[show version]' \
        '-l[list commands]' \
        '-h[show help]' \
        '-v[validate timestamp file]' \
        '-k[remove timestamp file]' \
        '-b[run command in background]' \
        '-r:Kerberos realm:' \
        '-p:prompt:' \
        '-u:user name:_users' \
        '-s[run SHELL]' \
        '-H[set HOME environment variable]' \
        '::complete command and/or arguments:_normal' 

and if I try to call it:

bor@itsrm2:~%> sudo um<TAB>   (implying umount)   
_tags:9: job table full or recursion limit exceeded

/andrej


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-11-30 14:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-30 14:28 zsh-3.1.6-pws-10: sudo completion does not work again Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
1999-11-30 14:42 Sven Wischnowsky
1999-11-30 12:08 Sven Wischnowsky
1999-11-30 11:43 Sven Wischnowsky
1999-11-30 12:14 ` Andrej Borsenkow
1999-11-30 14:47 ` Clint Adams
1999-11-30 10:45 Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).