Variable definition in 'sh -c' – unix.stackexchange.com

I tried to define a variable in a 'sh -c' command string: sh -c "TMP=??; echo $TMP;" Nothing was printed. Why can't I define a variable in a 'sh -c' string?

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Variable definition in 'sh -c' – unix.stackexchange.com"