Hi there,
I saw that functions have been called several times in BASH using brackets. I wanted to do the same thing, so calling my function my_func three times and passing another entry of the string array each time:
Code:
my_func() {
do_something_with $1
}
my_func { "a" "b" "c"}
but the method is only called once. What am I doing wrong? Did I misunderstood the bracket pattern? Don't get me wrong, I know how to create and pass an array in BASH I just wanted to use that new pattern.
Thanks