Hello Brian,
Hello Bob,
lately coreutils 8.24 has been uploaded to unstable and through p.d.o and pts i
landed here.
Reading through this discussion in this bugreport gave me some new knowledge.
So thanks to both of you.
Well actually that alone would not be sufficient for an entry in this
discussion.
I think i can understand Brians point. I used to feel info pages discouraging
myself for a long time. Info pages feel like wiki pages, no start no end and it
is difficult to keep track where you came from.
Now through this discussion here i noticed this distraction about info pages
seems to be a bug in pinfo rather then in info pages them self.
With coreutils info one <pg_down>, <pg_up> through info pages like in man. pinfo
rather seems to stop that where a new topic begins.
I am not sure whether this is new in more recent version of info though.
But this made me reconsider my decision toward pinfo as primary info pages
viewer.
Extra Points:
I wrote this tiny little function (attached) which makes it irrelevant which
info implementation one uses. With it all of these will lead to the same
location:
% info '(coreutils) tsort invocation'
% info coreutils "tsort invocation"
% info coreutils tsort invocation
I really like it when my computer learns to adapt to my habbits and not the
other way round!
btw.: The attached function surely has Zsh'isms. Should be straight forward to
backport (scnr) to bash. ;)
Hope you find this useful.
kind regards,
Thilo
# vim: ts=8:sw=4:sts=4:et:ft=zsh:
# kate: byte-order-marker false; dynamic-word-wrap false; indent-mode normal;
indent-pasted-text true; indent-width 4; keep-extra-spaces false;
newline-at-eof true; remove-trailing-spaces all; replace-tabs true;
replace-tabs-save true; show-tabs true; smart-home true; syntax Zsh; tab-width
8; word-wrap false;
#-----------------------------------------------------------------------
#
# info() {
builtin emulate -L zsh && builtin setopt csh_null_glob NO_glob_dots
NO_sh_word_split NO_ksh_arrays unset \
NO_extended_glob
local -a prog node
# if check_com -c pinfo ; then
# prog=(command pinfo)
# else
prog=(command info)
# fi
case ${#} in
(1)
${prog} ${1}
;;
(*)
if [[ ${prog} == *pinfo ]] ; then
${prog} ${1} --node="${*[2,$]}"
else
${prog} \(${@[1]}\) "${*[2,$]}"
fi
;;
esac
# }
# vim: ts=8:sw=4:sts=4:et:ft=zsh:
# kate: byte-order-marker false; dynamic-word-wrap false; indent-mode normal;
indent-pasted-text true; indent-width 4; keep-extra-spaces false;
newline-at-eof true; remove-trailing-spaces all; replace-tabs true;
replace-tabs-save true; show-tabs true; smart-home true; syntax Zsh; tab-width
8; word-wrap false;
#-----------------------------------------------------------------------
#
# pinfo() {
builtin emulate -L zsh && builtin setopt csh_null_glob NO_glob_dots
NO_sh_word_split NO_ksh_arrays unset \
NO_extended_glob
info "${@}"
# }