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

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

[Octave-bug-tracker] [bug #60453] Input function on windows fails to tri


From: anonymous
Subject: [Octave-bug-tracker] [bug #60453] Input function on windows fails to trim carriage return character when running in batch mode
Date: Mon, 26 Apr 2021 10:08:19 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36

Follow-up Comment #3, bug #60453 (project octave):

I updated to 6.2.0, and saw the same behavior. The batch file now contains

@echo off
C:\Octave\Octave-6.2.0\octave.vbs --eval batchTest('%~dp0')
cmd /c

for the updated version (removal of "--force-gui" was required for it to
work).

The Octave script batchTest.m excerpt is unchanged from below, including the
output with the carriage return coming from the input function.

Tasos' good suggestion of using 'strtrim' still works, but this was a subtle
error that was hard to catch, and I'm not sure I ever would have figured it
out without his help.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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