fix/cvsh-core #5

Merged
taylor merged 14 commits from verysmallrat/cvsh:fix/cvsh-core into main 2026-07-14 12:43:50 +01:00
Member

Removed the reliance on 'sh' with execl, only to realise that we then lost a bunch of important functions.

So, I've rewritten all the important ones from scratch, including;

  • Pipes
  • Redirects including >, >>, <, 2>&1
  • Variable expansion
  • Globbing
  • Variable assignment
  • Command substitution, e.g. echo $(date)

Had to add lexing as well to do this properly, because otherwise we can't quote etc.

There is still cleanup to be done in terms of fixing unmatched quotes being a hard fail, as well as backslash escaping not... actually existing properly... I'll fix that one on another PR but I wanted to get this out by the time indev II released. Errrr, nothing else I think.

Removed the reliance on 'sh' with execl, only to realise that we then lost a bunch of important functions. So, I've rewritten all the important ones from scratch, including; - Pipes - Redirects including >, >>, <, 2>&1 - Variable expansion - Globbing - Variable assignment - Command substitution, e.g. echo $(date) Had to add lexing as well to do this properly, because otherwise we can't quote etc. There is still cleanup to be done in terms of fixing unmatched quotes being a hard fail, as well as backslash escaping not... actually existing properly... I'll fix that one on another PR but I wanted to get this out by the time indev II released. Errrr, nothing else I think.
Author
Member

Oh also I did a cleanup of a bunch of the code with whitespaces, double lines, etc. I probably caused a bunch of them myself while writing lol

Doubly also sorry this took me like, what, basically two weeks to write.

Oh also I did a cleanup of a bunch of the code with whitespaces, double lines, etc. I probably caused a bunch of them myself while writing lol Doubly also sorry this took me like, what, basically two weeks to write.
taylor merged commit 312dc525ef into main 2026-07-14 12:43:50 +01:00
Sign in to join this conversation.
No reviewers
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!5
No description provided.