multiple interpolations in stepResult substitution should be allowed in Env, command, args in a step, take environment variable substitutions as an example, key1=$(step.<step-name>.results.result1)-$(steps.<step-name>.results.result2), should be resolved to key1=value1-value2
Actual Behavior
current it throws an error
{"level":"error","ts":1710775011.3269901,"caller":"entrypoint/entrypointer.go:206","msg":"Error while substituting step results: must be one of the form 1). \"tasks.<taskName>.results.<resultName>\"; 2). \"tasks.<taskName>.results.<objectResultName>.<individualAttribute>\"; 3). \"steps.<stepName>.results.<resultName>\"; 4). \"steps.<stepName>.results.<objectResultName>.<individualAttribute>\"","stacktrace":"github.com/tektoncd/pipeline/pkg/entrypoint.Entrypointer.Go\n\tgithub.com/tektoncd/pipeline/pkg/entrypoint/entrypointer.go:206\nmain.main\n\tgithub.com/tektoncd/pipeline/cmd/entrypoint/main.go:178\nruntime.main\n\truntime/proc.go:267"}
Expected Behavior
$(step.<step-name>.results.result1)-$(steps.<step-name>.results.result2)
, should be resolved tokey1=value1-value2
Actual Behavior
{"level":"error","ts":1710775011.3269901,"caller":"entrypoint/entrypointer.go:206","msg":"Error while substituting step results: must be one of the form 1). \"tasks.<taskName>.results.<resultName>\"; 2). \"tasks.<taskName>.results.<objectResultName>.<individualAttribute>\"; 3). \"steps.<stepName>.results.<resultName>\"; 4). \"steps.<stepName>.results.<objectResultName>.<individualAttribute>\"","stacktrace":"github.com/tektoncd/pipeline/pkg/entrypoint.Entrypointer.Go\n\tgithub.com/tektoncd/pipeline/pkg/entrypoint/entrypointer.go:206\nmain.main\n\tgithub.com/tektoncd/pipeline/cmd/entrypoint/main.go:178\nruntime.main\n\truntime/proc.go:267"}
Steps to Reproduce the Problem
Tekton pipeline Version
v0.57