[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62365] history fails to create nested directo
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #62365] history fails to create nested directory on write attempt |
Date: |
Wed, 27 Apr 2022 13:23:20 -0400 (EDT) |
Update of bug #62365 (project octave):
Item Group: None => Unexpected Error or
Warning
Status: Need Info => Confirmed
Operating System: Mac OS => Any
Summary: up arrow no longer shows previous command (Mac, CLI)
=> history fails to create nested directory on write attempt
_______________________________________________________
Follow-up Comment #13:
Confirmed. The function uses POSIX `mkdir` [1] which doesn't create nested
directories IIUC.
Afaict, there is no POSIX function that would create nested directories. We'd
need to spin one ourselves.
Rather than doing that, we could maybe use
`std::filesystem::create_directories` which is part of the filesystem library
standardized in C++17 [2]. We already started talking about whether it's time
to allow C++17 code in Octave. But we didn't come to a conclusion yet...
[1]: https://pubs.opengroup.org/onlinepubs/009695299/functions/mkdir.html
[2]: https://en.cppreference.com/w/cpp/filesystem/create_directory
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62365>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), (continued)
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Markus Mützel, 2022/04/26
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), John W. Eaton, 2022/04/26
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Jim Maloney, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Jim Maloney, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Jim Maloney, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Jim Maloney, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Torsten Lilge, 2022/04/27
- [Octave-bug-tracker] [bug #62365] history fails to create nested directory on write attempt,
Markus Mützel <=
- [Octave-bug-tracker] [bug #62365] history fails to create nested directory on write attempt, Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] history fails to create nested directory on write attempt, Markus Mützel, 2022/04/27