Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@sh.itjust.works to Programmer Humor@programming.dev · 18 hours ago

Escaping a string when passing through multiple tools

lemmy.ml

message-square
10
fedilink
197

Escaping a string when passing through multiple tools

lemmy.ml

cm0002@sh.itjust.works to Programmer Humor@programming.dev · 18 hours ago
message-square
10
fedilink
alert-triangle
You must log in or register to comment.
  • leds@feddit.dk
    link
    fedilink
    arrow-up
    6
    ·
    6 hours ago

    Oh you mean a pipiline defined in yaml, running in poweshell to execute a command in docker on windows?

  • SpikesOtherDog@ani.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 hours ago

    Run a PowerShell script from batch, but call it using start-process as administrator, using a variable for the path and also pass parameters to the script.

  • bobzrkr@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    8 hours ago

    I had to do this yesterday. First I tried ". Then \", finally \" worked. Which doesn’t make sense. But I’m not looking for answers, I’ve got more Jira tickets this sprint.

    • bobzrkr@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      8 hours ago

      LOL even here it gets me . I tried slash quote, slash slash slash quote, finally slash slash quote worked.

      • someacnt@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 hours ago

        You mean \", \\", and \\\" ?

  • deadbeef79000@lemmy.nz
    link
    fedilink
    arrow-up
    10
    ·
    14 hours ago
    [[[[[["TCL/TK has \\\\\\\\\\"entered\\\\\\\\\\" the chat."]]]]]] 
    
    • Hupf@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      https://xkcd.com/297/

  • CandleTiger@programming.dev
    link
    fedilink
    arrow-up
    13
    ·
    17 hours ago

    Aaaaaaaaaaaaaaaaaaa No!!! My data! Please stop doing that!

    • monkeyman512@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      15 hours ago

      I think I have seen a few CLI tools that put the input between an open and close arg like this “-arg1 random passthrough string -arg1-”

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 hours ago

        Now say the CLI tool is passed a string that has “-arg1-” inside it.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.61K users / day
  • 5.37K users / week
  • 9.27K users / month
  • 19.4K users / 6 months
  • 1 local subscriber
  • 26.7K subscribers
  • 1.37K Posts
  • 35.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org