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

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

[Octave-bug-tracker] [bug #42064] executing empty m-file as a command fa


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #42064] executing empty m-file as a command fails
Date: Mon, 14 Apr 2014 15:11:40 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Follow-up Comment #8, bug #42064 (project octave):

Sounds right, but not simple to fix.
An obvious workaround is:

if exist("cd_data.m", "file")
   if(fileread("cd_data.m") > 0)
     cd_data;
   endif
endif

So that the file is not read if it exists but is
empty.

Still not Matlab compatible, and misleading error
message.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42064>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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