Re: quote order (was [Fwd: [Fedora Project Wiki] Update of "Docs/Drafts/AdministrationGuide/UserAccounts" by VladimirKosovac])

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Karsten Wade wrote:
> On Tue, 2007-12-04 at 10:16 +1300, Vladimir Kosovac wrote:
>> Mike McGrath wrote:
>>> I vote for " ' ' "
>>>
>>>    -Mike
>>>
>> Yes, kind of more consistent this way...
> 
> How so?
> 
In a way that when su -c is used, the actual commands follow wrapped in
double quotes (regardless of whether there is anything within the
command string to escape), ie:

su -c "yum install foo" seems to be used throughout the wiki, rather than

su -c 'yum install foo'

Vladimir



> I was thinking that choosing one and enforcing it would be the
> consistency.  Agreed that " '' " is probably more widely used across the
> wiki/docs, thus making it easier to get consistency ...
> 
> What I was unclear on is the way the shell interprets the order; it
> seems to make a difference in some cases, where we'd want to change our
> usage per the requirement:
> 
> 13:49 < mmcgrath> quaid: it only really makes a difference when you're dealing 
>                   with variables.
> 13:50 < mmcgrath> In which case it depends on whether you want to print $var  
>                   or the value of $var
> 
> Sounds like " '' " is the chosen way.  I'll make that clear on the
> WikiEditing page.
> 
> - Karsten
> 

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-docs-list mailing list
fedora-docs-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-docs-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux