Because backticks don't nest. If your shell supports the more modern $(...) syntax, try this: var1=$(expr ...
stackoverflow.com