Rename resolved→done (#1-4, #11), closed→done (#13, #18), open (post-core)→open (#7), mark #9 as superseded by #21.
28 lines
652 B
Markdown
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?
|