phase : strip leading and trailing quotes #6

Open
opened 2026-08-14 05:37:21 +00:00 by jaynuine · 1 comment
Owner

as the last of all expansion phases, quotes surrounding a token ought be dismissed. we may achieve this by incrementing the string pointer to skip over the leading quote and overwriting the trailing quote with a null character, although we would lose the information telling us whether a token was quoted or not, which means we could not revert this operation only for previously quoted tokens to free them appropriately

as the last of all expansion phases, quotes surrounding a token ought be dismissed. we may achieve this by incrementing the string pointer to skip over the leading quote and overwriting the trailing quote with a null character, although we would lose the information telling us whether a token was quoted or not, which means we could not revert this operation only for previously quoted tokens to free them appropriately
jaynuine added this to the todo project 2026-08-14 05:37:33 +00:00
jaynuine changed title from expansion phase : strip leading and trailing quotes to phase : strip leading and trailing quotes 2026-08-14 05:45:46 +00:00
Author
Owner

actually this won't do because of the misassumption that tokens as a whole are quoted, when they may actually include quotes anywhere within them.
doesn't this also mean that they may contain multiple individual quotes ?

we might have to refactor a couple things ;-;

actually this won't do because of the misassumption that tokens as a whole are quoted, when they may actually include quotes anywhere within them. doesn't this also mean that they may contain multiple individual quotes ? we might have to refactor a couple things ;-;
Sign in to join this conversation.
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
jaynuine/minishell#6
No description provided.