This doesn't cut it
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@sh.itjust.works to Programmer Humor@programming.dev · 2 days ago

Escaping a string when passing through multiple tools

lemmy.ml

external-link
message-square
10
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
205
external-link

Escaping a string when passing through multiple tools

lemmy.ml

cm0002@sh.itjust.works to Programmer Humor@programming.dev · 2 days ago
message-square
10
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • leds@feddit.dk
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

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

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

      https://xkcd.com/297/

  • CandleTiger@programming.dev
    link
    fedilink
    arrow-up
    14
    ·
    2 days ago

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

    • monkeyman512@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      2 days 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
        ·
        2 days ago

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

  • bobzrkr@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    2 days 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
      4
      ·
      edit-2
      2 days 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
        3
        ·
        2 days ago

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

  • SpikesOtherDog@ani.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 days 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.

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.

  • 815 users / day
  • 5.12K users / week
  • 9.23K users / month
  • 19.6K users / 6 months
  • 1 local subscriber
  • 26.7K subscribers
  • 1.22K Posts
  • 30.6K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org