3 ms·
The aliases are expanded before calling sudo. It is equivalent to just typing out the full command. IIUC the reason sudo ignores the path is because if you use
by kevincox 6y ago
The aliases are expanded before calling sudo. It is equivalent to just typing out the full command.
IIUC the reason sudo ignores the path is because if you use per-command sudo rules you often depend on the path being correct.