2 improved formatting
source | link

Can someone please help me understand the difference between ( bash -c 'echo $SHELL $HOME $USER')

bash -c 'echo $SHELL $HOME $USER'

and (env -i bash -c 'echo $SHELL $HOME $USER').

env -i bash -c 'echo $SHELL $HOME $USER'

I tried going over it many times but I still don't get it. I'm studying bout envabout env and bash -cbash -c appears in the example. What does bash -cbash -c do exactly?

Can someone please help me understand the difference between ( bash -c 'echo $SHELL $HOME $USER') and (env -i bash -c 'echo $SHELL $HOME $USER'). I tried going over it many times but I still don't get it. I'm studying bout env and bash -c appears in the example. What does bash -c do exactly?

Can someone please help me understand the difference between

bash -c 'echo $SHELL $HOME $USER'

and

env -i bash -c 'echo $SHELL $HOME $USER'

I tried going over it many times but I still don't get it. I'm studying about env and bash -c appears in the example. What does bash -c do exactly?

1
source | link

env -i and bash-c

Can someone please help me understand the difference between ( bash -c 'echo $SHELL $HOME $USER') and (env -i bash -c 'echo $SHELL $HOME $USER'). I tried going over it many times but I still don't get it. I'm studying bout env and bash -c appears in the example. What does bash -c do exactly?