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

Vladimir Kosovac vnk at mkc.co.nz
Mon Dec 3 23:10:41 UTC 2007



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
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20071204/4a87afb0/attachment.sig>


More information about the fedora-docs-list mailing list