On 25/10/13 00:08, Ralf Mardorf wrote:
> On Thu, 2013-10-24 at 23:56 +1100, Scott Ferguson wrote:
>> alias s='su -c "'
> 
> You still need a wrapper to handle quotation marks.
> 
> command_foo --option_bar "string abc"
> 
> by your alias
> 
> s command_foo --option_bar \"string abc\""
> 
> imagine more than just one option needing the quotation marks.
> It's easier to use sudo or to write a wrapper for su -c.
> 
> sudo command_foo --option_bar "string abc"
> 
> 
I only have to type one additional ". Alias puts the first one in. Any
other required "" have to be typed whether you use sudo or su.
And yes, a wrapper would alleviate that if you wanted. I'm happy with my
method. You're happy with yours. All happy.

Kind regards


-- 
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/52691fcb.1000...@gmail.com

Reply via email to