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.

4
  • related unix.stackexchange.com/q/246026/38906 Commented Apr 13, 2017 at 4:25
  • In the second case, what's so hard about writing DATE_ARGS=(-u -Iseconds)? Commented Apr 13, 2017 at 6:22
  • You can't export an array as an environment variable. See stackoverflow.com/questions/5564418/… Commented Apr 13, 2017 at 6:25
  • @Barmar yes that's basically where I'm at right now: Assume end user is comfortable creating a bash array. But the common way to export arguments for a script to use is the second example, not with an array. Commented Apr 13, 2017 at 6:26