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.

5
  • 2
    2) No, of the scripts start with a #! /bin/zsh they will be only run with zsh and there is no need to test them with bash and Final note) the true "industry standard" is more like ksh (I have seen many Linux shops that still write scripts for ksh). Commented Aug 27, 2018 at 19:03
  • 1
    Well, it depends, really. If you end up writing script for zsh but you 'only' have bash in production, then you need to test both. As for 'industry standard' this is based on my experience, but everyone differs of course. :) I use to work a lot with ksh on AIX and HPUX, but there are less and less *NIX and more GNU/Linux distros... again, this is my point of view. Your mileage may vary. :) Commented Aug 27, 2018 at 19:55
  • 1
    No, the industry standard is the actual industry standard, the sh that is standardized in the Single Unix Specification. And that is not the Bourne Again shell on several operating systems, including on Debian and Ubuntu for well over a decade now. unix.stackexchange.com/questions/250913 Commented Aug 27, 2018 at 20:14
  • 2
    Alright, didn't mean to start an argument. :) Should probably have said "de facto standard" not "industry standard". Commented Aug 27, 2018 at 20:58
  • @piotr No, if you have only bash in production you put a bash shebang and write your scripts for bash (at least all the scripts that go to production). No point making your life complicated if you can't use zsh features. Commented Aug 27, 2018 at 22:30