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.

3
  • This sounds like the XY problem (asking about your concept of the solution rather than your original problem you're trying to solve with that solution). Since you're using the variable name FLAGS, is it possible that what you're actually trying to do here is parse options in your script? Commented Dec 24, 2015 at 9:23
  • No, my script needs to execute another script using the parameters passed to it. Replace FLAGS with any other name, I chose it arbitrarily. Commented Dec 24, 2015 at 10:35
  • test is both a shell builtin and a standard utility (try type -a test): you should choose a different name for your program. Commented Dec 24, 2015 at 13:51