On Thu, 2013-10-24 at 14:19 +0200, Ralf Mardorf wrote: > On Thu, 2013-10-24 at 23:04 +1100, Scott Ferguson wrote: > > "su -c" isn't too difficult for many, and if the extra keystrokes are a > > problem:- > > $ echo "alias s='su -c"'" >> ~/.bash_aliases;. .bash rc > > then you can use "s" instead of "sudo" (or alias sudo='su -c"') if you > > don't have sudo installed. > > su -c becomes inconvenient if an option of a command needs quotation > marks, the alias isn't helpful then. > > su -c "command --option "that needs quotation marks"" > > Sure, it's not hard to correct this line, so that it will work, but it's > not that handy as > > sudo command --option "that needs quotation marks"
A wrapper script could do the job and automagically handle the quotation mark annoyance. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1382618120.670.16.camel@archlinux