New favorite tool 😍

  • yetAnotherUser@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    I checked the docs, and I’m a bit confused with one thing. They show that you can capture the stdout of a command into a variabe, but they never show stderr being captured. How would that work?

    • syd@lemy.lolOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 month ago

      Like this: ‘’’ $mv file.txt dest.txt$ failed { echo “It seems that the file.txt does not exist” } ‘’’

      • yetAnotherUser@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 month ago

        Knowing if a command failed and capturing stderr (which contains stuff like error messages) are not the same thing.