bugGNU Octave - Bugs: bug #63743, urlread does not display output...

 
 

bug #63743: urlread does not display output even though semicolon is not used

Submitter:  None
Submitted:  Fri 03 Feb 2023 12:28:28 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 7.3.0
Operating System:  * Any Fixed Release:  9.1.0
Planned Release:  9.1.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 Feb 2023 04:55:32 AM UTC, comment #2: 

Actually, this is a bug.  The semicolon at the end of an Octave statement is used to suppress display of any output.  If there is no semicolon, then there should be output.  I verified with Matlab and their urlread function does display output even when nargout == 0.

I checked in a changeset on the development branch here: http://hg.savannah.gnu.org/hgweb/octave/rev/d211561cd2bc.

This could be ported over to stable as well, but not right before the 8.1 release.  It would need to go in at the next bug fix release.

Rik <rik5>
Group administrator
Fri 03 Feb 2023 12:32:18 AM UTC, comment #1: 

Not a bug, but perhaps documentation could be more clear.

s = urlread ("wttr.in/bielefeld")

From help urlread:



Download a remote file specified by its URL and return its content
     in string S.


Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 03 Feb 2023 12:28:28 AM UTC, original submission:  

Command: urlread ("wttr.in/bielefeld")
Expected output: Bielefeld weather.
Actual output: nothing (does not exist).

Command: disp (urlread ("wttr.in/bielefeld"))
Output: (Bielefeld weather)

urlread should return url contents. det returns value even without disp, so urlread should be the same.

Anonymous

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-02-03 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 9.1.0
        Planned ReleaseNone 9.1.0
        SummaryOctave does not show Bielefeld weather urlread does not display output even though semicolon is not used

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code