patchGNU Octave - Patches: patch #9025, Concise output of filenames


patch #9025: Concise output of filenames

Submitter:  Lachlan Andrew <lachlan>
Submitted:  Fri 10 Jun 2016 09:28:40 AM UTC
Category:  Core : new feature Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  lachlan Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Wed 22 Jun 2016 09:40:47 AM UTC, comment #1: 

Here's an updated patch reflecting the change to docstring format.

(file #37541)

Lachlan Andrew <lachlan>
Fri 10 Jun 2016 09:28:40 AM UTC, original submission:  

This patch displays shorter forms of file names in contexts like error messages and the most-recently-used file menu.  It does not change Octave's practice of always storing absolute filenames.

Filenames are shortened in three ways:
1. Relative path names are used for files below the current directory.
2. The user's home directory is replaced by a ~
3. The directory containing Octave's core scripts is replaced by SCRIPT.
   (Would "SYS" be a better string?)

All of the scripts that change directory internally, such as run(), disable this locally so that they don't display misleading error messages.

The SCRIPT command has been added to return the relevant prefix, so that users can find out the absolute path names.

This is disabled by default, and can be enabled by

output_short_filenames (1)

Lachlan Andrew <lachlan>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lachlan (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-07 lachlan CategoryNone Core : new feature
    2016-06-22 lachlan Attached File- Added patch_output_short_filenames.v2.cset, #37541
    2016-06-10 lachlan Attached File- Added patch_output_short_filenames.cset, #37447

    Back to the top

    Powered by Savane 3.13-c54d.
    Corresponding source code