On Sun, Apr 09, 2006 at 08:26:58PM -0400, James Vega wrote:
> On Sun, Apr 09, 2006 at 10:00:29PM +0200, Sune Vuorela wrote:
> > ~> help
> > fish: Unknown command 'htmlview'
> > /usr/share/fish/functions/help.fish (line 12): htmlview 
> > file:///usr/share/doc/fish/index.html &
> >                                                ^
> > in function 'help',
> >         called on standard input,
> 
> This looks to be a problem either with test(1) or upstream's expectation
> of the return value of test.  help.fish uses the type function (which
> calls "test -x") to determine if one out of a list of possible browsers
> is installed.  "test -x" is returning a 'true' value when there is no
> argument given to it, thus causing fish to try to use an unavailable
> browser.

Actually, taking a closer look at things, the way type is written should
work.  I'll nudge upstream about it if I can still reproduce it in the
new release (which I'm currently packaging).

> > I can't find the command htmlview in debian
> 
> I will add a "Depends: www-browser" since the help relies on one.
> Thanks for pointing that out.  I'll also file a bug against coreutils
> about the odd behavior of test when no arguments are supplied.

This behavior is actually documented POSIX behavior (as noted in
#335466), so no bug will be filed.

James
-- 
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to