• davad@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 days ago

    What about using a variable directly (without the @<(echo ...)? Does that still leak?

    • notabot@piefed.social
      link
      fedilink
      English
      arrow-up
      7
      ·
      3 days ago

      Yes, that will still leak as the value of the variable will be substituted into the command line before it’s executed, so it’ll show up in the process table. Using the <(echo ...) redirection is replaced by a file descriptor that connects to an anonymous pipe.