Debug terminal - Variable contains content of file instead of file path
Summary
This seems to be the same issue described in here and a fix for the pipeline had been done in 15.7
but it seems this was not implemented for the Debug terminal. A premium customer(internal) reported the issue and I was able to reproduce this in the latest version
What is the current bug behavior?
This is the output when viewing the file variable in the debug terminal in the latest version 15.10.0
$ env | grep FOO
FOO=This is a test message
$ echo $FOO
This is the foo file
$ cat $FOO
cat: This: No such file or directory
cat: is: No such file or directory
cat: the: No such file or directory
cat: foo: No such file or directory
cat: file: No such file or directory
What is the expected correct behavior?
Should display the path of the file
$ echo $FOO
/builds/testgroup/debug_terminal.tmp/FOO
$ cat $FOO
This is the foo file
Possible fixes
Possibly the same fix done for the pipeline
Edited by Silvester Wainaina