[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous print
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info |
Date: |
Thu, 12 Jan 2017 07:42:55 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #3, bug #50034 (project octave):
That's because "." is always in the path, and both "." and "./" are valid file
names which refer to current directory, which is in the load path.
The help function unconditionally calls which(name), which is where that first
line comes from. If which(name) prints nothing, then you get nothing, which is
what you normally see for all operators. But because which("./") prints that
it is the current directory, you get that misleading first line.
Some logic could be added to help.m to see if the given name is an operator
and not run which on it.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50034>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Dan Sebald, 2017/01/11
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Rik, 2017/01/11
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Dan Sebald, 2017/01/11
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info,
Mike Miller <=
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Rik, 2017/01/12
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Rik, 2017/01/12
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Dan Sebald, 2017/01/12
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Dan Sebald, 2017/01/12
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Rik, 2017/01/14
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Dan Sebald, 2017/01/14
- [Octave-bug-tracker] [bug #50034] "help ./" causes some extraneous printout of path info, Rik, 2017/01/15