- Subject: Re: strange `printf` arguments, parsing features (bugs?)
- From: Oleg Verych <olecom@xxxxxxxxxxxxxx>
- Date: Mon, 19 May 2008 04:47:55 +0200
- In-reply-to: <20080519005328.GA29081@xxxxxxxxxxxxxxxxxxx>
- Organization: Palacky University in Olomouc, experimental physics department
- User-agent: Mutt/1.5.13 (2006-08-11)
> > > > # (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
[LARTC]
[Bugtraq]
[Yosemite Forum]
[Photo]