Re: strange `printf` arguments, parsing features (bugs?)

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

 



> > > > # (3) '\' in `` and in $();
> > > > # what is POSIX "literal meaning" of '\' in `` and what is '\\' then?
>             Within the backquoted style of command substitution, backslash
>             shall retain its literal meaning, except when followed by:
>             '$', '`', or '\\' (dollar sign, backquote, backslash).

> > $( ' \\\\ ' ) ; ` ' \\\\ ' ` ; $( ' \\\ ' ) ; ` ' \\\ ' `
> >       (4)            (2)            (3)           (2)
> > $( " \\\\ " ) ; ` " \\\\ " ` ; $( " \\\ " ) ; ` " \\\ " `

So, literal meaning of '\' is '\' and '\\' is '\' there.

Or, if you want to have a slash (odd number), use slash (same). If you
what to place two slashes (even), use four (even << 1).

Nice.

> > it is so, but how to explain this wrt spec.?
> 
> Section 2.6.3, "Command Substitution":
> 
____
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux