Put the following a.sh and b.sh to /tmp/ and make them executable:
a.sh
b.sh
/tmp/
#!/bin/sh PATH=/tmp:$PATH A=5 echo $A echo $PATH b.sh