octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #56068] The echo command goes in action only a


From: Rik
Subject: [Octave-bug-tracker] [bug #56068] The echo command goes in action only after the SECOND line
Date: Sat, 6 Apr 2019 00:08:54 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #4, bug #56068 (project octave):

The issue is bound up with the way the parser is processing the echo command. 
Any lines between the issuance of "echo on" and the first valid command are
not echo'ed appropriately.

I used a slightly different test file (tst_ps42.m which is attached)


echo on
# comment 1
a = 1
# comment 2
b = 2
c = 3


I then turned on echo before running the script.  


echo on
tst_ps42
+ echo on
a =  1
+ # comment 2
+ b = 2
b =  2
+ c = 3
c =  3
+ 


In this case, the line "# comment 1" and the line "a = 1" are not echo'ed. 
After that, things proceed as they should until the end where there is an
extra blank line that is echo'ed.



(file #46726)
    _______________________________________________________

Additional Item Attachment:

File name: tst_ps42.m                     Size:0 KB
    <https://savannah.gnu.org/file/tst_ps42.m?file_id=46726>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56068>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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