[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47451] Return is not respected with input red
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #47451] Return is not respected with input redirection |
Date: |
Fri, 18 Mar 2016 03:04:24 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<http://savannah.gnu.org/bugs/?47451>
Summary: Return is not respected with input redirection
Project: GNU Octave
Submitted by: None
Submitted on: Fri 18 Mar 2016 03:04:23 AM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name: SSP
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
The return statement is not respected with input redirection, resulting in
inconsistent execution depending on how a script is invoked.
Create a file foo.m like this:
disp('one')
return
disp('two')
Start Octave and invoke foo from the prompt. It prints "one" but not "two".
Quit Octave, and from the shell prompt run "octave <foo.m". That prints both
"one" and "two".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47451>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47451] Return is not respected with input redirection,
anonymous <=