# PN5_60908

Updated: 1/18/2022, 5:31:44 PM
Created: 1/18/2022, 5:31:44 PM
Last Updated By: dependabot[bot]
Read Time: 1 minute(s)

# Description

Enhance the DECATALOG command to optionally delete the intermediate object code that gets generated when a program is compiled

# Previous Release Behavior

This is an enhancement, so this behavior did not previously exist.

# Current Release Behavior

The files that get deleted are those that start with a "$" or end with ".o" (UNIX) / ".obj" (Windows)

There are 2 ways to achieve this behavior:

  1. by using the new -d option, e.g. DECATALOG -d filename program

  2. by setting the new DECATALOG_DELETE_OBJECT_CODE environment variable

When this feature is implemented the DECATALOG command will look for and delete the intermediate object code files if said object code is in the OBJECT data section or in the source code file when an OBJECT data section does not exist.

Caveat:

If a program compiled with an explicit filename, e.g.

BASIC bp test.b
1

then a subsequent

DECATALOG -d . test
1

will only remove the object code if the current directory is "bp".

Back to 5.7.4 Release Notes