Skip to content

os9 copy: add option to set file attributes during copy#60

Merged
DrPitre merged 1 commit into
nitros9project:mainfrom
tlindner:copy-attr
Jul 3, 2026
Merged

os9 copy: add option to set file attributes during copy#60
DrPitre merged 1 commit into
nitros9project:mainfrom
tlindner:copy-attr

Conversation

@tlindner

Copy link
Copy Markdown
Member

This change adds a new -a option to the os9 copy command that allows OS-9 file attributes to be set as part of the copy operation.
The attribute string uses the same syntax as the existing os9 attr command, allowing owner and public permissions to be set or cleared during the copy. Attributes are applied only after a successful copy, so existing behavior is unchanged when -a is not specified.
Examples:
os9 copy -a=erpepr source dest
Copies source to dest and sets owner read/execute and public read/execute permissions on the destination file.
This is particularly useful when installing executables, where the desired permissions can now be applied in a single step instead of requiring a separate attr command afterward.

This change adds a new -a option to the os9 copy command that allows OS-9 file attributes to be set as part of the copy operation.
The attribute string uses the same syntax as the existing os9 attr command, allowing owner and public permissions to be set or cleared during the copy. Attributes are applied only after a successful copy, so existing behavior is unchanged when -a is not specified.
Examples:
os9 copy -a=erpepr source dest
Copies source to dest and sets owner read/execute and public read/execute permissions on the destination file.
This is particularly useful when installing executables, where the desired permissions can now be applied in a single step instead of requiring a separate attr command afterward.
@DrPitre

DrPitre commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

This is pretty handy.

@DrPitre DrPitre self-requested a review July 3, 2026 16:50
@DrPitre DrPitre merged commit b1ea72c into nitros9project:main Jul 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants