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.

Required fields*

3
  • 1
    how exactly does it work in the terminal? Commented May 10, 2024 at 18:11
  • Regarding "the command works fine in the terminal" - no, it definitely would not. shellcheck.net finds more error in it than there are lines of code. Commented May 10, 2024 at 21:57
  • As well as shellcheck does point out the unquoted ( and helpfully asks if it was supposed to be quoted, the rest of the errors it shows are just a consequences of parsing going off due to the (. But no, I don't see how that could work on the terminal either, that unquoted ( is an error in pretty much any shell (including tcsh), though in zsh it just makes that a glob (which probably doesn't match and isn't what you want), and in fish it makes it a command substitution (which probably gives an "unknown command" for the s, and also isn't what you want). Commented May 11, 2024 at 10:33