patching exports and reading /etc/profile #7

Merged
charlie merged 1 commit from verysmallrat/cvsh:fix/exports into main 2026-07-27 15:03:25 +01:00
Member

Patching to include reading of 'export' as this was removed in fix/cvsh-core merge.

Needed for downstream applications such as reading of /etc/profile in vlos.

This also includes a main read of /etc/profile as described above and matches approach of zsh (for example), though not quite as elegant. This logic will need to be re-written if I get around to doing builtins properly.

This approach can also now be used to read a source file like ~/.cvshrc later on but is not included in this commit.

Patching to include reading of 'export' as this was removed in fix/cvsh-core merge. Needed for downstream applications such as reading of /etc/profile in vlos. This also includes a main read of /etc/profile as described above and matches approach of zsh (for example), though not quite as elegant. This logic will need to be re-written if I get around to doing builtins properly. This approach can also now be used to read a source file like ~/.cvshrc later on but is not included in this commit.
Sign in to join this conversation.
No reviewers
vulpinelinux/Maintainers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vulpinelinux/cvsh!7
No description provided.