On 2005-09-07 12:15:31 -0400, Kirk Hilliard wrote: > So, does a bug still exist?
Yes, the bug occurs when an error message has to be displayed. > ------------------------------ 8< ------------------------------ > unset LESS > PAGER="less" dict -h zzz test > PAGER="less -c" dict -h zzz test > PAGER="less -X" dict -h zzz test > PAGER="less -cX" dict -h zzz test > ------------------------------ >8 ------------------------------ > > In all cases the pager displays an empty page, then the error message > once the pager is closed: > > Cannot connect to any servers (use -v to see why) Not here. The error message is displayed first, but is discarded (so quickly that it can't be read) when the -c option is used (with or without -X). > Are you suggesting that dict should not open the pager when there is > an error preventing the return of a definition? That sounds > reasonable to me, but I'll have to see how easy it would be to > implement. Yes, this would be a solution. But I think that there are two cases. 1) The contents are empty, as above. In this case, opening the pager isn't necessary. 2) There are some contents, in which case the error message may just be a warning or some partial error. I don't know if this can happen. Here dict could wait for a key before starting the pager, or the error message could be sent to the pager. -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / SPACES project at LORIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]