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: Dennis Cote
Subject: [Octave-bug-tracker] [bug #31080] User scripts or functions created during a session on Windows are not found
Date: Mon, 20 Jan 2025 14:57:03 -0500 (EST)

Follow-up Comment #78, bug #31080 (group octave):

Rereading these bug reports start from the beginning I see there is another
issue with directory timestamp on Windows directories. I decided to retest
using my current directory. I still see this issue. A slightly edited command
history (some file names redacted) is shown below. I'm using Octave 9.3.0 on
Windows 11.


GNU Octave, version 9.3.0
Copyright (C) 1993-2024 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-w64-mingw32".

Home page:            https://octave.org
Support resources:    https://octave.org/support
Improve Octave:       https://octave.org/get-involved

For changes from previous versions, type 'news'.

>> stat('.')
ans =

  scalar structure containing the fields:

    dev = 2
    ino = 0
    mode = 16895
    modestr = drwxrwxrwx
    nlink = 1
    uid = 0
    gid = 0
    rdev = 2
    size = 32768
    atime = 1.7374e+09
    mtime = 1.7371e+09
    ctime = 1.7268e+09
    blksize = NaN
    blocks = NaN

>> pwd
ans = C:\Users\DennisC
>> dir

...
I redacted many file names.
File bug.m did not exist.

>> edit bug.m
>> stat('.')
ans =

  scalar structure containing the fields:

    dev = 2
    ino = 0
    mode = 16895
    modestr = drwxrwxrwx
    nlink = 1
    uid = 0
    gid = 0
    rdev = 2
    size = 32768
    atime = 1.7374e+09
    mtime = 1.7374e+09
    ctime = 1.7268e+09
    blksize = NaN
    blocks = NaN

>> dir

...
I redacted many file names.
File bug.m does exist in current directory
which is on the load path.

>> dir bug.m
bug.m
>> bug
error: 'bug' undefined near line 1, column 1
>> path(path());
>> bug
bug testing
ans = 0
>> 


The content of bug.m is a large comment header inserted by the edit command
followed by:


function retval = bug (input1, input2)
  display("bug testing");
  retval = 0;
endfunction


The first thing I noticed is that the format of the timestamps returned by the
stat command have changed from integers to exponential floating point with
only 5 digits of precision.

My C: drive is an NTFS drive. This is happening in a sub-directory rather than
at the root of a drive.

The path(path()) workaround does cause Octave to find and execute the bug.m
file.


    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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