Bug 198807 - "doc" command not conformant to documentation
Summary: "doc" command not conformant to documentation
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: octave
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Quentin Spencer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-13 18:36 UTC by Piergiorgio Sartor
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-13 20:56:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Piergiorgio Sartor 2006-07-13 18:36:41 UTC
Description of problem:

Typing "help doc" under octave returns:

 -- Command: doc FUNCTION_NAME
     Displays documentation for the function FUNCTION_NAME.  For
     example, if you want to see the documentation for the Octave
     random number generator `rand', type
          `doc rand'
...

but typing:

doc rand

returns:

parse error:

  syntax error

>>> doc rand
...

Version-Release number of selected component (if applicable):
2.9.5-3.fc5

How reproducible:
Always, and more...

Steps to Reproduce:
1.
As above
2.
3.
  
Actual results:
Error is reported.

Expected results:
The documentation should be displayed.

Additional info:
Well, "doc" is a function and must be called as:

doc('rand')

in order to operate properly. In fact the above line works fine.
Of course, "doc rand" would be much better, less and easier typing,
and conformant to the help.

Comment 1 Quentin Spencer 2006-07-13 20:56:10 UTC
I have just built a 2.9.6 release which appears to fix this problem on my
system. It should be available on the mirrors in the next day or two. I am
closing this bug, but if you still see the problem on 2.9.6, you can reopen it.
If you want "doc rand" to work on 2.9.5, try running the command
"mark_as_command doc" first.


Note You need to log in before you can comment on or make changes to this bug.