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 option
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,
[EMAIL PROTECTED]:~/kldfind] # kldload
usage: kldload [-v] file ...
zsh: 48524 exit 1 kldload
[EMAIL PROTECTED]:~/kldfind] # kldunload
usage: kldunload [-fv] -i id ...
kldunload [-fv] [-n] name ...
zsh: 48539 exit 64 kldunload
[EMAIL PROTECTED]:~/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/
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"