Bugzilla – Bug 168
SUDO 1.6.8 does not log complete command when using a semicolon
Last modified: 2005-02-22 20:17:47 MST
On FreeBSD-5.x, with the latest sudo, under BASH-3, if I run sudo and use a command line of (ie): sudo clear; command; command the only item that's logged is "clear".
You only ran a single command through sudo, the "clear" command. In the shell a semicolon is a command delimiter. That is, it ends the current command and starts a new one so what you have are three separate commands, only the first of which is run via sudo. The others will run normally, without elevated permissions.