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

feat: collection spread/split into arguments #63

Open
LytixDev opened this issue Oct 13, 2023 · 0 comments
Open

feat: collection spread/split into arguments #63

LytixDev opened this issue Oct 13, 2023 · 0 comments

Comments

@LytixDev
Copy link
Owner

POSIX sh does word splitting by default. Slash should not, and instead word splitting should be performed using an operator. For example "^". Shoud work for strings and maybe tuples and lists as well.

Use case and idea:

var CFLAGS = "-Iinclude -Wall -Wpedantic -Wextra -Wshadow -std=gnu11"

cc $CFLAGS  # will treat the string as one variable which in this case is wrong

cc ^$CFLAGS  # will spread/split the string into multiple arguments
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

No branches or pull requests

1 participant