Files
lush/issues/18-tilde-expansion.md
Cormac Shannon 9e75175c79 Add issues #16–#23
#16 multiline shell commands
#17 _ scope (global vs local)
#18 path expansion (~)
#19 nested commands trigger prompt2
#20 simplify backtick return value
#21 prompt redesign
#22 implicit interactive commands (drop ! prefix)
#23 general cleanup and refactor
2026-03-04 23:28:11 +00:00

28 lines
652 B
Markdown

# 18 — Path expansion (`~`, `*`, `**`)
**Status:** open
**Related:** #13 shell globbing
Path expansion for `~` is not available. Commands like:
```
!cat ~/Notes/jobs_board.md
```
fail with:
```
cat: ~/Notes/jobs_board.md: No such file or directory
```
The `~` and other expansions are passed literally to the command rather than being expanded to `$HOME`.
## Requirements
- `~` at the start of a word should expand to `$HOME`
- Should work in both backtick and `!` prefix contexts
### To invesitigate/decide
- How should it interact with quoting (quoted `~` should not expand), should single/double quotes be used? both? or something else?