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*

7
  • Your forgot to post the content of greet.sh. Commented Apr 12, 2020 at 17:27
  • @Gilles'SO-stopbeingevil' They have ~/myfunctions/greet there. Does it have to have a .sh filename suffix? Commented Apr 12, 2020 at 17:32
  • @Kusalananda The suffix is not relevant, but the full content of the file is. Possibly even the way the script is executed. But at the very least the file contents. Commented Apr 12, 2020 at 17:35
  • @Gilles'SO-stopbeingevil' it's there in my post, after "a file called ~/myfunctions/greet which contains:" (the contents are just those 2 lines). Commented Apr 12, 2020 at 17:59
  • Oh ok. So that's not a zsh script: without a shebang line, it's an sh script. That's why I asked for the whole file. Commented Apr 12, 2020 at 18:06