Isn't that how export works in all Bourne-style shells? For example:
$ env var=outside dash -c '
var=inside;
dash -c "echo \$var"
'
inside
$
Maybe in the failing case SHELL was not exported but just set to
/bin/false in .bashrc or similar?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author] Next message: [thread] [date] [author]