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

Consider ways to return array items from functions where items have spaces #76

Open
cgrindel opened this issue Jan 28, 2022 · 0 comments
Labels
shlib Issues related to shlib

Comments

@cgrindel
Copy link
Owner

Example

# Ensure args with spaces works properly.
args=("hello world" "chicken smidgen" "howdy, joe")
actual=( $( double_quote_items "${args[@]}" ) )
assert_equal 3 ${#actual[@]}
assert_equal "\"hello world\"" "${actual[0]}"
assert_equal "\"chicken smidgen\"" "${actual[1]}"
assert_equal "\"howdy, joe\"" "${actual[2]}"
@cgrindel cgrindel added the shlib Issues related to shlib label Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shlib Issues related to shlib
Projects
None yet
Development

No branches or pull requests

1 participant