...
The actual command that is being run is as follow:{Code}
Wiki Markup |
---|
{set the path};if sudo -l {command}>/dev/null; then sudo {command}; else {command};fi |
{set the path};if sudo -l {command}>/dev/null; then sudo {command}; else {command};fi{Code}
This difference might be important because the precise behaviour might be dependent on the user’s standard shell. ‘if’ is a shell command that can have slightly different behaviours on different shells.
...