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

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

[Octave-bug-tracker] [bug #31080] User scripts or functions created duri


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #31080] User scripts or functions created during a session are not found
Date: Sat, 04 Jan 2014 23:22:19 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

Follow-up Comment #21, bug #31080 (project octave):

Yes, confirmed here (I now have a winxp VM with 3.8.0 to test with). The root
directory of an NTFS drive seems to have a constant timestamp:


octave:1> format long
octave:2> info = stat ('C:\')
...
    atime =  315550800
    mtime =  315550800
    ctime =  315550800

octave:3> ctime (315550800)
ans = Tue Jan 01 00:00:00 1980
octave:4> edit ('C:\foo.m')
octave:5> info = stat ('C:\')
...
    atime =  315550800
    mtime =  315550800
    ctime =  315550800



So yes this looks unavoidable given the current path caching scheme.

One possibility might be to watch for directory inode changes instead of
looking at timestamps. This could use FindFirstChangeNotification on Windows
and inotify on Linux-based systems. This would most likely be a major
overhaul.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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