List Info

Thread: quote order (was Update of "Docs/Drafts/AdministrationGuide/UserAccount




quote order (was Update of "Docs/Drafts/AdministrationGuide/Us erAccount
user name
2007-12-03 13:54:38
The correction below brings up a small thing we can be
consistent about,
but first we can decide how we prefer it.

So let's vote!  (+1 for your preference)

su -c 'command -c "quoted text" foo'
su -c "command -c 'quoted text' foo"

In other words:

" '' "

... or... 

' "" '


Karsten

-------- Forwarded Message --------
  
  {{{
- su -c "/usr/sbin/useradd -c "Luke
McAlister" -g primary -G additional,another -d
/home/second -s /bin/tcsh luke2"
+ su -c "/usr/sbin/useradd -c 'Luke McAlister' -g
primary -G additional,another -d /home/second -s /bin/tcsh
luke2"
  }}}
  
  {{{
- su -c "/usr/sbin/usermod -c "Luke
McAlister" luke"
+ su -c "/usr/sbin/usermod -c 'Luke McAlister'
luke"
  }}}
  

-- 
Karsten Wade, Developer Community Mgr.
Dev Fu : http://developer.
redhatmagazine.com
Fedora : http://quaid.fedorapeop
le.org
gpg key : AD0E0C41

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

Re: quote order (was Update of "Docs/Drafts/AdministrationGuide /UserAcc
country flaguser name
United States
2007-12-03 14:21:08
Karsten Wade wrote:
> The correction below brings up a small thing we can be
consistent about,
> but first we can decide how we prefer it.
>
> So let's vote!  (+1 for your preference)
>
> su -c 'command -c "quoted text" foo'
> su -c "command -c 'quoted text' foo"
>
> In other words:
>
> " '' "
>
> ... or... 
>
> ' "" '
>
>  Karsten
>
> -------- Forwarded Message --------
>   
>   {{{
> - su -c "/usr/sbin/useradd -c "Luke
McAlister" -g primary -G additional,another -d
/home/second -s /bin/tcsh luke2"
> + su -c "/usr/sbin/useradd -c 'Luke McAlister' -g
primary -G additional,another -d /home/second -s /bin/tcsh
luke2"
>   }}}
>   
>   {{{
> - su -c "/usr/sbin/usermod -c "Luke
McAlister" luke"
> + su -c "/usr/sbin/usermod -c 'Luke McAlister'
luke"
>   }}


I vote for " ' ' "

    -Mike

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


Re: quote order (was Update of "Docs/Drafts/AdministrationGuide /UserAcc
country flaguser name
United States
2007-12-03 15:16:08

Mike McGrath wrote:
> Karsten Wade wrote:
>> The correction below brings up a small thing we can
be consistent about,
>> but first we can decide how we prefer it.
>>
>> So let's vote!  (+1 for your preference)
>>

<snip>
> 
> 
> I vote for " ' ' "
> 
>    -Mike
> 
Yes, kind of more consistent this way...




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

Re: quote order (was Update of "Docs/Drafts/AdministrationGuide /UserAcc
user name
2007-12-03 15:53:10
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?

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
-- 
Karsten Wade, Developer Community Mgr.
Dev Fu : http://developer.
redhatmagazine.com
Fedora : http://quaid.fedorapeop
le.org
gpg key : AD0E0C41

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

Re: quote order (was Update of "Docs/Drafts/Administrati onGuide/UserAcc
user name
2007-12-03 17:31:31
On Tue, 2007-12-04 at 12:10 +1300, Vladimir Kosovac wrote:

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

Yes, it was not being sure about that consistency that made
me ask.
Ironically, the example in WikiEditing used: 

su -c 'foo'

It's fixed now, with notes:

http://fedoraproject.org/wiki/WikiEditing#Writ
ing_Example_Commands

- Karsten
-- 
Karsten Wade, Developer Community Mgr.
Dev Fu : http://developer.
redhatmagazine.com
Fedora : http://quaid.fedorapeop
le.org
gpg key : AD0E0C41

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

Re: quote order (was Update of "Docs/Drafts/Administrat ionGuide/UserAcc
user name
2007-12-05 12:53:06
On Tue, 2007-12-04 at 12:42 +1300, Vladimir Kosovac wrote:

> Heh, I wonder when exactly did we start ignoring
WikiEditing page?

Someone has actually read that thing enough to start
ignoring it? 

That is one document that could use some trimming.

The main parts we use are just two sections, combined with
our own
guidelines to keep things DocBook ready:

http://fedoraproject.org/wiki/WikiEditing#Marki
ng_Technical_Terms
http://fedoraproject.org/wiki/WikiEditing#Writ
ing_Example_Commands
http://fedoraproject.org/wiki/DocsProject/WritingUs
ingTheWiki

- Karsten
-- 
Karsten Wade, Developer Community Mgr.
Dev Fu : http://developer.
redhatmagazine.com
Fedora : http://quaid.fedorapeop
le.org
gpg key : AD0E0C41

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

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )