help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inadequate/inconsisten 'help pkg' message; problems with downloading


From: Sergei Steshenko
Subject: Re: inadequate/inconsisten 'help pkg' message; problems with downloading
Date: Mon, 15 Aug 2011 14:52:14 -0700 (PDT)

Reading screen output of 'help pkg' I've noticed this:

"
    `list'
          Show a list of the currently installed packages.  By
          requesting one or two output argument it is possible to get a
          list of the currently installed packages.  For example,

               installed_packages = pkg list;
".

The proposed code snippet, i.e. "installed_packages = pkg list;" does _not_
work:

"
octave:5> installed_packages = pkg list;
parse error:

  syntax error

>>> installed_packages = pkg list;
                                ^

octave:5>
".

The following works:

"
octave:5> installed_packages = pkg("list");
octave:6> numel(installed_packages)
ans =  68
octave:7>  
".

I don't know whether the above problem is the documentation or the 
interpreter problem - it happens, I remind, in octave-3.4.2.

...

Looks like the interpreter problem - in octave-3.0.5:

"GNU Octave, version 3.0.5
Copyright (C) 2008 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.  For details, type `warranty'.

Octave was configured for "i686-pc-linux-gnu".

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

Report bugs to <address@hidden> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

octave:1> installed_packages = pkg list;
octave:2> numel(installed_packages)
ans = 0
octave:3> installed_packages = pkg list
installed_packages = {}(1x0)
octave:4>
".


Regards,
  Sergei.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]