garden-rs / garden

Garden grows and cultivates collections of Git trees ~ Official mirror of https://gitlab.com/garden-rs/garden
https://garden-rs.gitlab.io
MIT License
64 stars 9 forks source link

cmds: make "zsh" split words just like other shells #25

Closed davvid closed 6 months ago

davvid commented 6 months ago

Use the "zsh -o shwordsplit" option by default to improve portability of garden commands. zsh does not split words by default, which makes the behavior of $variable expressions different from bash.

Add a garden.shell-wordsplit option to opt-out of this behavior and use the default zsh behavior where unquoted $variable expressions are not subject to word splitting.