zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#495135: zsh-beta: Broken "look" tab completion
       [not found] <20080814185927.2060.93499.reportbug@orthrus>
@ 2008-08-14 19:22 ` Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-08-14 19:22 UTC (permalink / raw)
  To: Nelson A. de Oliveira, 495135; +Cc: zsh-workers

On Thu, Aug 14, 2008 at 03:59:27PM -0300, Nelson A. de Oliveira wrote:
> $ look [TAB]
> 
> I get this:
> 
> $ look look: /usr/share/dict/words: No such file or directory

You should file a bug on bsdmainutils to either provide a more helpful
error or raise the wordlist relationship to a Recommends.

It isn't going to work anyway, but for the sake of aesthetics:

Index: Completion/Unix/Command/_look
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_look,v
retrieving revision 1.4
diff -u -r1.4 _look
--- Completion/Unix/Command/_look	8 Jun 2005 05:33:47 -0000	1.4
+++ Completion/Unix/Command/_look	14 Aug 2008 19:19:37 -0000
@@ -11,6 +11,6 @@
   ':dictionary file:_files' && ret=0
 
 [[ -n "$state" && ! -prefix - ]] && _wanted values expl 'word prefix' \
-    compadd - $(_call_program words $words[1] '"$PREFIX"') && return
+    compadd - $(_call_program words $words[1] '"$PREFIX"' 2>/dev/null) && return
 
 return ret


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-14 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20080814185927.2060.93499.reportbug@orthrus>
2008-08-14 19:22 ` Bug#495135: zsh-beta: Broken "look" tab completion Clint Adams

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).