zsh-workers
 help / color / mirror / code / Atom feed
* completion function name clashes
@ 2013-02-27 15:37 Oliver Kiddle
  2013-02-27 16:17 ` Peter Stephenson
  2013-02-27 21:51 ` Oliver Kiddle
  0 siblings, 2 replies; 3+ messages in thread
From: Oliver Kiddle @ 2013-02-27 15:37 UTC (permalink / raw)
  To: Zsh workers

We appear to have two of each of _osc and _ps.

How should we resolve things for _ps? I would suggest renaming the one
for postscript files to _postscript but for the fact that it is much
older.

For the ps command, the _ps is Solaris specific. There's not been
completion for ps before because it is a real mess with BSD and SYSV
having quite different options and many new systems having hybrids. I
also have vague memories that there is more than one ps common on Linux
systems though it appears to be procps everywhere I currently have
access to.

Oliver


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

* Re: completion function name clashes
  2013-02-27 15:37 completion function name clashes Oliver Kiddle
@ 2013-02-27 16:17 ` Peter Stephenson
  2013-02-27 21:51 ` Oliver Kiddle
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2013-02-27 16:17 UTC (permalink / raw)
  To: Zsh workers

On Wed, 27 Feb 2013 16:37:30 +0100
Oliver Kiddle <okiddle@yahoo.co.uk> wrote:
> We appear to have two of each of _osc and _ps.
> 
> How should we resolve things for _ps? I would suggest renaming the one
> for postscript files to _postscript but for the fact that it is much
> older.

I don't think renaming it is a problem --- _ps probably makes most
command line users think of the command rather postscript.

> For the ps command, the _ps is Solaris specific. There's not been
> completion for ps before because it is a real mess with BSD and SYSV
> having quite different options and many new systems having hybrids. I
> also have vague memories that there is more than one ps common on Linux
> systems though it appears to be procps everywhere I currently have
> access to.

Unless anyone tries to fix it, I suppose it can stay associated with
Solaris.

-- 
Peter Stephenson <p.stephenson@samsung.com>       Consultant, Software
Tel: +44 (0)1223 434724              Samsung Cambridge Solution Centre
St John's House, St John's Innovation Park,
Cowley Road, Cambridge, CB4 0DS, UK


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

* Re: completion function name clashes
  2013-02-27 15:37 completion function name clashes Oliver Kiddle
  2013-02-27 16:17 ` Peter Stephenson
@ 2013-02-27 21:51 ` Oliver Kiddle
  1 sibling, 0 replies; 3+ messages in thread
From: Oliver Kiddle @ 2013-02-27 21:51 UTC (permalink / raw)
  To: Zsh workers

We've also got a couple of cases of more than one function completing
for a specific command. There are two functions for yast. The patch
below is against the older one to make it complete .ycp files but I'll
move it to the opensuse directory.

Oliver

Index: Completion/Linux/Command/_yast
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_yast,v
retrieving revision 1.1
diff -u -r1.1 _yast
--- Completion/Linux/Command/_yast	8 Jun 2005 12:12:42 -0000	1.1
+++ Completion/Linux/Command/_yast	27 Feb 2013 21:45:40 -0000
@@ -8,4 +8,4 @@
   '--noborder[no window manager border for main window]' \
   '--fullscreen[use full screen]' \
   '(-)'{-i,--install}'[install package]:*:package file:_files -g "*.rpm(-.)"' \
-  '1:module:( ${${(f)"$($words[1] -l 2>/dev/null)"}[2,-1]##* } )'
+  '1:module: _alternative files:file:_files\ -g\ \\\*.ycp\\\(-.\\\) modules:module:\(${${(f)"$($words[1] -l 2>/dev/null)"}[2,-1]##* }\)'
Index: Completion/Unix/Type/_pids
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_pids,v
retrieving revision 1.5
diff -u -r1.5 _pids
--- Completion/Unix/Type/_pids	12 May 2011 15:57:02 -0000	1.5
+++ Completion/Unix/Type/_pids	27 Feb 2013 21:45:40 -0000
@@ -1,4 +1,4 @@
-#compdef pflags pcred pmap pldd psig pstack pfiles pwdx pstop prun pwait ptree
+#compdef pflags pcred pmap pldd psig pstack pfiles pwdx pstop prun pwait
 
 # If given the `-m <pattern>' option, this tries to complete only pids
 # of processes whose command line match the `<pattern>'.
Index: Completion/Unix/Type/_pdf
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_pdf,v
retrieving revision 1.11
diff -u -r1.11 _pdf
--- Completion/Unix/Type/_pdf	6 Mar 2012 02:10:25 -0000	1.11
+++ Completion/Unix/Type/_pdf	27 Feb 2013 21:45:40 -0000
@@ -1,4 +1,4 @@
-#compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext pdfopt pdffonts kpdf apvlv evince epdfview
+#compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext pdfopt pdffonts kpdf apvlv epdfview
 
 local expl ext=''
 


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

end of thread, other threads:[~2013-02-27 21:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-27 15:37 completion function name clashes Oliver Kiddle
2013-02-27 16:17 ` Peter Stephenson
2013-02-27 21:51 ` Oliver Kiddle

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