python-apps icon indicating copy to clipboard operation
python-apps copied to clipboard

Bug with the replacement of $exec value

Open tristandostaler opened this issue 3 years ago • 4 comments

If $exec has 2 keys similar, like: $exec.example = "123" $exec.exampleLonger "abc"

and I use $exec.exampleLonger somewhere, I get "123Longer"

tristandostaler avatar Jan 26 '22 22:01 tristandostaler

If $exec has 2 keys similar, like: $exec.example = "123" $exec.exampleLonger "abc"

and I use $exec.exampleLonger somewhere, I get "123Longer"

what :thinking:

I think this must be an old app SDK in play somewhere. What app are you testing with? It shows the expected "abc" in all my tries

frikky avatar Jan 26 '22 22:01 frikky

Exec arguments:

{     "example": "123",     "exampleLonger": "abc" }

Repeat after me:

{
  "example": "$exec.example",
  "exampleLonger": "$exec.exampleLonger"
}

image

tristandostaler avatar Jan 26 '22 23:01 tristandostaler

But, with repeat after me:

$exec.exampleLonger

image

tristandostaler avatar Jan 27 '22 00:01 tristandostaler

example

hmm, so it must have something to do with nested values and tokenization :thinking:

frikky avatar Jan 27 '22 10:01 frikky