That this ever worked in kdesu was a bug IMHO.    kdesudo (kdesu is now
a link to it)

Here's why

   sudo "id && whoami"   ->  sudo: id && whoami: command not found

Even su complain.  To do what you want with su  one has to use

  su -c "comamnd1 && command2"

There is a -c (pass to shell) command.     As su always asked for a password, 
implementing - c was
is necessary.   Sudo does not ask the second time, so  sudo command1 && sudo 
command is the
natural thing.

Task of kdesu and kdesudo is run a/one command as root.   Not to emulate part 
of the shell (aka
implement &&).

As sudo does not have -c and su used it for &&,  || etc task.  I would suggest 
that this is the right
fix.   Don't reimplement kdesu's non unixish behaviour.

-- 
command chaining with "&&" doesn't work
https://bugs.launchpad.net/bugs/157043
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to