From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: [PATCH] _fuser Solaris and SVR4 support
Date: Fri, 11 Mar 2005 10:37:16 +0100 [thread overview]
Message-ID: <24297.1110533836@trentino.groupinfra.com> (raw)
In-Reply-To: <E1D9PCy-000Gis-00.arvidjaar-mail-ru@f9.mail.ru>
Andrey wrote:
> I have access to Solaris 9 only so please extend this with
> other versions (BTW Solaris 10 is now 5.10 not 2.10).
Solaris 8 only has the basic set of options so no changes are needed for
it and, presumably, earlier versions.
> Completion for SVR4 is not quite right - it should complete
> signal names only after -k, but it seems to be too much work.
It isn't too hard and it is always very annoying to break file
completion (as this does for Solaris). Does this patch do the right
thing?
Oliver
Index: _fuser
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_fuser,v
retrieving revision 1.2
diff -u -r1.2 _fuser
--- _fuser 10 Mar 2005 18:38:16 -0000 1.2
+++ _fuser 11 Mar 2005 09:31:04 -0000
@@ -1,6 +1,6 @@
#compdef fuser
-local -a args arg1
+local -a args kopt
if _pick_variant -c $words[1] gnu=GNU unix -V; then
_arguments \
@@ -19,6 +19,7 @@
'-6[search only for IPv6 sockets]' \
':name:_files'
else
+ kopt='-k[kill processes accessing the file]'
case $OSTYPE in
solaris2.9 )
args=(
@@ -27,16 +28,15 @@
)
;;
sysv4 )
- arg1=( ':signal:_signals -p' )
+ kopt+=':signal:_signals -p'
;;
esac
_arguments \
'(-f)-c[list all processes accessing files on the filesystem specified by name]' \
'(-c)-f[list all processes accessing named files]' \
- '-k[kill processes accessing the file]' \
'-u[append the user name of the process owner to each PID]' \
+ $kopt \
$args \
- $arg1 \
':name:_files'
fi
next prev parent reply other threads:[~2005-03-11 9:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-10 15:04 Andrey Borzenkov
2005-03-11 9:37 ` Oliver Kiddle [this message]
2005-03-12 7:46 ` Andrey Borzenkov
2005-03-21 17:08 ` Oliver Kiddle
2005-03-22 18:46 ` Andrey Borzenkov
2005-03-22 19:28 ` Oliver Kiddle
2005-03-11 10:47 ` Danek Duvall
2005-03-11 11:15 ` Oliver Kiddle
2005-03-12 7:53 ` Andrey Borzenkov
2005-03-12 7:55 ` Andrey Borzenkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24297.1110533836@trentino.groupinfra.com \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).