using printenv in script sh in recovery TWRP return error execv failed : Exec format error
printenv doesn't work but using env works well

so i changed my script like this

env &gt; /tmp/tong.txt


it works as expected