Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quote retuned text values #104

Merged
merged 1 commit into from
May 24, 2024

Conversation

akihiro17
Copy link
Contributor

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
Copy link
Member

Thanks for contributing @akihiro17! Merging

@Ph0enixKM Ph0enixKM merged commit 59ef0c6 into amber-lang:master May 24, 2024
1 check passed
@akihiro17 akihiro17 deleted the prevent-word-splitting branch May 24, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants