bugGNU Octave - Bugs: bug #37183, Return string when use help().

 
 

bug #37183: Return string when use help().

Submitter:  Peng Yu <pengyu>
Submitted:  Fri 24 Aug 2012 05:44:59 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 24 Aug 2012 06:48:08 PM UTC, comment #1: 
John W. Eaton <jwe>
Group administrator
Fri 24 Aug 2012 05:44:59 PM UTC, original submission:  

"deblank(help('help'))" works, but "deblank(help())" does not.

Please see detailed discussion at http://octave.1599824.n4.nabble.com/How-to-remove-the-redundant-print-when-use-help-tt4643201.html#a4643257

/tmp$ cat test.sh
#!/usr/bin/env bash

/opt/local/bin/octave -q << EOF
%deblank(help('help'))
deblank(help())
EOF

/tmp$ ./test.sh

  For help with individual commands and functions type

    help NAME

  (replace NAME with the name of the command or function you would
  like to learn more about).

  For a more detailed introduction to GNU Octave, please consult the
  manual.  To read the manual from the prompt type

    doc

  GNU Octave is supported and developed by its user community.
  For more information visit http://www.octave.org.

error: Invalid call to deblank.  Correct usage is:

 -- Function File:  deblank (S)


/tmp$ octave --version
GNU Octave, version 3.4.0
Copyright (C) 2011 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

Octave was configured for "x86_64-apple-darwin10.7.3".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.


Peng Yu <pengyu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by pengyu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-08-24 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code