in reply to Re^4: Single Quote string with Variable
in thread Single Quote string with Variable

your post, where the first three examples show the wrong way to do it, is no better.
  • Comment on Re^5: Single Quote string with Variable

Replies are listed 'Best First'.
Re^6: Single Quote string with Variable
by ikegami (Patriarch) on Feb 15, 2023 at 22:07 UTC

    They're not wrong, just overly complex for the case at hand. Hippo's example, on the other hand, suffers from a code injection bug.

      They're not wrong

      you can't actually believe that?

        Absolutely. Building shell commands and capturing the output of child programs aren't just perfectly acceptable tasks, they are common ones. Begone with your trolling.

        A reply falls below the community's threshold of quality. You may see it by logging in.