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

2008-05-18 Thread Herbert Xu
On Sun, May 18, 2008 at 06:40:26PM +0200, Oleg Verych wrote: Herbert Xu @ Sun, May 18, 2008 at 11:41:08PM +0800: # (1) parameters to `printf`? [EMAIL PROTECTED]:/tmp$ sh -c 'printf -1' printf: 1: Illegal option -1 This is expected. Use printf -- if you want to disable option

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

2008-05-18 Thread Herbert Xu
Oleg Verych [EMAIL PROTECTED] wrote: 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. Yes it is confusing, however, the `` construct is deprecated and the $() construct is more reasonable in this regard.