zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] killall completion for FreeBSD
@ 2004-07-21 21:15 Jean-Baptiste Quenot
  2004-07-23 14:08 ` Oliver Kiddle
  0 siblings, 1 reply; 4+ messages in thread
From: Jean-Baptiste Quenot @ 2004-07-21 21:15 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

Dear workers,

I noticed that killall completion does  not work on FreeBSD.  This patch
addresses the issue, as the  completion was originally only intended for
GNU/Linux.   Indeed,  FreeBSD  uses  a  slightly  different  syntax  for
expressing ps output options.

Best regards,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/

[-- Attachment #2: zsh-killall-freebsd --]
[-- Type: text/plain, Size: 700 bytes --]

--- Completion/Unix/_killall.orig	Wed Jul 21 22:31:12 2004
+++ Completion/Unix/_killall	Wed Jul 21 23:13:13 2004
@@ -4,6 +4,10 @@
   _alternative \
       'signals:: _signals -p' \
       'processes:process:{ compadd "$expl[@]" ${${${${(f)"$(_call_program processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho cmd 2> /dev/null)"//[][\(\)]/}:#(ps|COMMAND|-*)}%%\ *}:t} }'
+elif [[ $service = killall && "$OSTYPE" = freebsd* ]]; then
+  _alternative \
+      'signals:: _signals -p' \
+      'processes:process:{ compadd "$expl[@]" ${${${${(f)"$(_call_program processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/}ho comm 2> /dev/null)"//[][\(\)]/}:#(ps|COMMAND|-*)}%%\ *}:t} }'
 else
   _signals -p
 fi

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

end of thread, other threads:[~2004-07-23 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-21 21:15 [PATCH] killall completion for FreeBSD Jean-Baptiste Quenot
2004-07-23 14:08 ` Oliver Kiddle
2004-07-23 15:07   ` Jean-Baptiste Quenot
2004-07-23 16:16     ` 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).