On Sun, Jun 23, 2002 at 09:22:24PM +0200, Eric Smith wrote:
> According to Sven Guckes on Sun, Jun 23, 2002 at 07:58:28PM +0200:
> > * Eric Smith <[EMAIL PROTECTED]> [2002-06-23 15:36]:
> > > How do I quote within a quote more than once?
> > > 
> > > A specific example is that I want my default setting for $editor
> > > to be: set editor=" vim -c '/^$/+1'  -c 'se tw=65' "
> > 
> >   set editor="vim -u setupfile"
> > 
> good idea (but still wondering how one would nest commands
> with only `'' amd `"' as quote chars - a problem not unique to
> mutt I know.

By trial and error I've found two sequences of quote characters that
create a third level of nesting.

    1.  '  "  \"
    2.  '  "  '\''

I always use single-quotes (') at the outermost level, then
double-quotes (") for the next level, then a backslash-quoted
double-quote if I need a double quote, or a triplet of single-quote,
backslash-quoted single-quote, single-quote if I need a single-quote.

HTH,
Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |

Reply via email to