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

 
 

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

Submitted by:  Peng Yu <pengyu>
Submitted on:  Fri 24 Aug 2012 05:44:59 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.4.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 24 Aug 2012 06:48:08 PM UTC, comment #1:

I checked in the follwoing change:

http://hg.savannah.gnu.org/hgweb/octave/rev/fbecbce45898

John W. Eaton <jwe>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 24 Aug 2012 06:48:08 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1