Removing 'set -e' from sh's to make it "pass" and not understanding what it does

  • 2
    Not sure why you'd want to run a shell built-in for variables anyway? Prepending it with local or using export to put it in the environment variables, sure.. but set and declare, is there any actual use for these?
  • 2
    @SanitizedOutput Hmm, seems reasonable. Personally I tend to use single ' quotes for space-separated stuff.. but I never really looked into the use of set and declare that much, so I could be doing it all wrong :/
  • 0
    @SanitizedOutput Typically add a cleanup function that you can trap so it always runs, otherwise, you can still error handle specific commands 'cmd || cleanup'
Add Comment