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.

1
  • Ah, I see. You're right. By enclosing the function call in $(), I'm preventing the -eq from being sent as arguments to the function. However, I'm encountering another problem. The file_staged() function isn't working as expected. When I run the command from the command line, I get the expected results, but not in my script. I'll update my question accordingly. Commented Mar 2, 2019 at 5:12