Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Dave Morriss (perloid@quitter.se)'s status on Monday, 29-Jan-2018 08:37:13 EST Dave Morriss Dave Morriss
    @clacke I may be missing something here but won't fail(){ false; echo "Stuff"; } always return true because of the echo returning 0?
    In conversation Monday, 29-Jan-2018 08:37:13 EST from quitter.se permalink
    1. clacke (clacke@social.heldscal.la)'s status on Monday, 29-Jan-2018 08:38:08 EST clacke clacke
      in reply to
      @perloid As you see in the first example, `set -e` makes it return 1 ("false").
      In conversation Monday, 29-Jan-2018 08:38:08 EST from social.heldscal.la permalink
      1. clacke (clacke@social.heldscal.la)'s status on Monday, 29-Jan-2018 08:43:12 EST clacke clacke
        in reply to
        @perloid I haven't checked what nasty surprises might turn up if you do `set -e` within the function again, and I won't trick myself into checking that tonight.

        I solved my original issue (which I have been battling since yesterday without even knowing it!) and have committed a fix. Time to call this a day and close this particular computer.
        In conversation Monday, 29-Jan-2018 08:43:12 EST from social.heldscal.la permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.