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.

6
  • My guess is that there is a BASH profile to set up variables, but none for zsh. Maybe also add an echo "$@" to the beginning of the script. Probably bash gets the floag for a login shell, but you don't pass it on to zsh. Commented Dec 1, 2022 at 14:56
  • what does "$@" mean? When I try it in the terminal, it returns nothing. Commented Dec 1, 2022 at 16:10
  • See PARAMETERS in the BASH manual page, or write a script using echo "$@" and run it with a few parameters. When trying to replace the shell, I'm assuming you have some basic understanding how each shell works. Commented Dec 2, 2022 at 7:38
  • Read the doc. Your suggestion does not work. Commented Dec 11, 2022 at 12:10
  • Maybe elaborate on "does not work" and be a bit more specific on what docs to read, specifically what part of such doc. Still the semantics of echo "$@" is well-defined. Commented Dec 12, 2022 at 7:15