mesalock-linux / mesabox

A collection of core system utilities written in Rust for Unix-like systems (and now Windows)
BSD 3-Clause "New" or "Revised" License
137 stars 19 forks source link

sh: implement tilde expansion #17

Closed Arcterus closed 6 years ago

Arcterus commented 6 years ago

We should be doing:

  1. tilde expansion (this, based on the value of $HOME), parameter expansion, command substitution, and arithmetic expansion
  2. field splitting
  3. pathname expansion (i.e. globbing)
  4. quote removal (not sure if this needs to be handled explicitly or if Word::SingleQuote and Word::DoubleQuote are good enough
Arcterus commented 6 years ago

This should be resolved by 1df99bad7e5623fd7c3a0e7fb04ddcb165ea655b.