Ask Your Question

Revision history [back]

There is a wealth of literature on Bash functions that return arrays. Here are some relevant resources:

  1. Bash Arrays: A Tutorial from the Grymoire: This tutorial includes a section on Bash functions that return arrays.

  2. Bash: Assign array to a variable and return from a function: This Stack Overflow thread provides examples of Bash functions that return arrays.

  3. Bash Arrays: Explained with 5 Examples: This tutorial includes examples of Bash functions that return arrays.

  4. How to return an array in bash? - LinuxQuestions.org: This thread provides different examples of Bash functions that return arrays.

  5. Bash Function Examples with Parameters and Return Value: This article includes a section on Bash functions that return arrays.

  6. Bash Reference Manual: Arrays: The Bash Reference Manual includes a section on returning arrays from functions.

All of these resources can help you understand how to write Bash functions that return arrays.