Files
lush/issues/18-tilde-expansion.md
Cormac Shannon bad40fb65b Standardize issue status labels to done/open/in progress
Rename resolved→done (#1-4, #11), closed→done (#13, #18),
open (post-core)→open (#7), mark #9 as superseded by #21.
2026-03-15 19:33:49 +00:00

28 lines
652 B
Markdown

# 18 — Path expansion (`~`, `*`, `**`)
**Status:** done
**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?