Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • You need double quotes around the expansion of the multiline variable I think - username=${1:?"$usage_message"} Commented Feb 20, 2024 at 1:47
  • Wow, actually very simple. It works with both variable and the subshell call to the function. Thanks. You could re-post an answer to be marked as done. Commented Feb 20, 2024 at 1:53