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.
|