I have this line of code :
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
Is there a difference between
eval "$(SHELL=/bin/sh lesspipe)"
and more simply
SHELL=/bin/sh lesspipe(orexport SHELL=/bin/sh lesspipe)
(What is the difference between using export and not using it by the way?)
SHELL=/bin/sh lesspipeisn'tSHELLbeing set to/bin/sh lesspipe; it's runninglesspipewith the environment variableSHELLset to/bin/shfor that command only. If that wasn't clear.