1
Many people are familiar with this method of setting env vars:
PYTHONPATH=/path/to/lib python do-a-thing.py
But I want to ensure the variable is unset before calling my command. Is it possible to do this in a one-line invocation, or do I have to do it this way?
unset PYTHONPATH; python do-a-thing.py
Looks like this works for me! – Wayne Werner – 2017-06-13T20:30:38.483
1+1. I confirm it works under
Debian GNU/Linux 8
andUbuntu 16.04.2 LTS
. – Kamil Maciorowski – 2017-06-14T19:05:25.033