phase : strip leading and trailing quotes #6
Labels
No labels
area
execution
area
expansion
area
parsing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaynuine/minishell#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
expansion phase : strip leading and trailing quotesto phase : strip leading and trailing quotesactually 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 ;-;