Date: Sun, 21 May 2006 14:28:29 -0300 From: "Ricardo A. Reis" <ricardo_bsd@yahoo.com.br> To: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: kldfind, updated for version 0.56 Message-ID: <op.s9wv5rgnp1tyz6@myfreebsd>
next in thread | raw e-mail | index | archive | help
Hi all,
I corrected option implementation, now kldfind accept options in =
any =
order
Changelog:
0.56: Corrected use of getopts,
Mupdated man with option and examples (is necessary re-view optio=
n =
in pod2man for pre-formate string)
I've two questions,
First about exit codes, when program is executed without options,=
=
how this must return ?
kldunload and kldload not return the same exit codes,
[ricardo@myfreebsd:~/kldfind] # kldload
usage: kldload [-v] file ...
zsh: 48524 exit 1 kldload
[ricardo@myfreebsd:~/kldfind] # kldunload
usage: kldunload [-fv] -i id ...
kldunload [-fv] [-n] name ...
zsh: 48539 exit 64 kldunload
[ricardo@myfreebsd:~/kldfind] # ./kldfind-v056
usage: kldfind-v056 [-chqsv] ...
In kldfind i return 0
The last question is about short description in -v (verbose =
output), i use
this line for capture from man line after NAME section,
man acpi |col -b|awk '/^NAME/,/-/ { gsub(/^.* [-]+ |^.* -- |( =
)+|^[ ]+|--$/,"") ; print }'|\
tail -n1 |tr '\n' ' ' 2>&1
This work for severals man, it acceptable ?
Thanks for any comments.
http://ricardo.epm.br/freebsd/script/kldfind/kldfind-v056
Ricardo A. Reis
UNIFESP
Unix and Network Admin
_______________________________________________________
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz.
http://br.info.mail.yahoo.com/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.s9wv5rgnp1tyz6>
