Files
lush/issues/18-tilde-expansion.md
2026-03-10 21:35:48 +00:00

654 B

18 — Path expansion (~, *, **)

Status: closed 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?