Implemented prompt expansion

This commit is contained in:
2025-03-09 03:30:03 -04:00
parent 1808786313
commit 41582672d5
13 changed files with 430 additions and 23 deletions

View File

@@ -20,6 +20,7 @@ pub fn expand_string(s: &str, shenv: &mut ShEnv) -> ShResult<String> {
while let Some(ch) = chars.next() {
match ch {
'\\' => {
result.push(ch);
if let Some(next_ch) = chars.next() {
result.push(next_ch)
}