JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.3k stars 54 forks source link

Shellcode heredocs don't work #84

Closed JoshCheek closed 7 years ago

JoshCheek commented 7 years ago

Should have only wrapped that first line.

$ seeing_is_believing  --debug -e '
   <<`SH`
   a="$(echo abc)"
   echo "$a"
   echo "$a" | tr a-z A-Z
   SH
   '
REWRITTEN PROGRAM:

$SiB.record_result(:inspect, 2, (<<`SH`))
$SiB.record_result(:inspect, 4, (a="$(echo abc)"
$SiB.record_result(:inspect, 5, ())echo "$a"
$SiB.record_result(:inspect, 6, ())echo "$a" | tr a-z A-Z
))SH