Ph0enixKM / Amber

💎 Amber the programming language compiled to bash
https://amber-lang.com
GNU General Public License v3.0
3.54k stars 70 forks source link

quote retuned text values #104

Closed akihiro17 closed 1 month ago

akihiro17 commented 1 month ago

Quote returned text values to prevent word splitting.

reproduction script

import { words, join } from "std"

main(args) {
  echo words(join(["hello", "world"], " "))
}

before

hello

after

hello world

ref. https://www.shellcheck.net/wiki/SC2086

Ph0enixKM commented 1 month ago

Thanks for contributing @akihiro17! Merging